Commit d8bd7129 authored by Dennis Grün's avatar Dennis Grün Committed by Benni Mack
Browse files

[BUGFIX] Properly initialize image property of FrontendUser

Resolves: #88315
Releases: master, 9.5
Change-Id: I76f75986b39ff15bd2d57ab94ec290a509381275
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60726

Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarDaniel Haupt <dh@schiffel.it>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarJosef Glatz <josefglatz@gmail.com>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarDaniel Haupt <dh@schiffel.it>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarJosef Glatz <josefglatz@gmail.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
parent 38eb1650
......@@ -130,6 +130,7 @@ class FrontendUser extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
$this->username = $username;
$this->password = $password;
$this->usergroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
$this->image = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
}
/**
......
......@@ -375,9 +375,9 @@ class FrontendUserTest extends UnitTestCase
/**
* @test
*/
public function getImageInitiallyReturnsEmptyString()
public function getImageInitiallyReturnsObjectStorage()
{
$this->assertSame(null, $this->subject->getImage());
$this->assertInstanceOf(\TYPO3\CMS\Extbase\Persistence\ObjectStorage::class, $this->subject->getImage());
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment