mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-22 18:06:10 +01:00

[CLEANUP] Drop some redundant PHPDoc type annotations (#611)

This commit is contained in:
Oliver Klee 2022-10-06 17:51:04 +02:00 committed by GitHub
parent 3a2b9aefe3
commit 4537d5fca9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,12 +31,10 @@ class TeaRepositoryTest extends FunctionalTestCase
$this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class);
/** @var Typo3Version $versionInformation */
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
if ($versionInformation->getMajorVersion() >= 11) {
$this->subject = $this->getContainer()->get(TeaRepository::class);
} else {
/** @var ObjectManager $objectManager */
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$this->subject = $objectManager->get(TeaRepository::class);
}
@ -85,7 +83,6 @@ class TeaRepositoryTest extends FunctionalTestCase
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
$uid = 1;
/** @var Tea $model */
$model = $this->subject->findByUid($uid);
self::assertNotNull($model);
@ -101,7 +98,6 @@ class TeaRepositoryTest extends FunctionalTestCase
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
$uid = 3;
/** @var Tea $model */
$model = $this->subject->findByUid($uid);
$image = $model->getImage();