mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 12:36:12 +01:00
[CLEANUP] Drop some redundant PHPDoc type annotations (#611)
This commit is contained in:
parent
3a2b9aefe3
commit
4537d5fca9
1 changed files with 0 additions and 4 deletions
|
@ -31,12 +31,10 @@ class TeaRepositoryTest extends FunctionalTestCase
|
||||||
|
|
||||||
$this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class);
|
$this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class);
|
||||||
|
|
||||||
/** @var Typo3Version $versionInformation */
|
|
||||||
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
|
$versionInformation = GeneralUtility::makeInstance(Typo3Version::class);
|
||||||
if ($versionInformation->getMajorVersion() >= 11) {
|
if ($versionInformation->getMajorVersion() >= 11) {
|
||||||
$this->subject = $this->getContainer()->get(TeaRepository::class);
|
$this->subject = $this->getContainer()->get(TeaRepository::class);
|
||||||
} else {
|
} else {
|
||||||
/** @var ObjectManager $objectManager */
|
|
||||||
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
|
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
|
||||||
$this->subject = $objectManager->get(TeaRepository::class);
|
$this->subject = $objectManager->get(TeaRepository::class);
|
||||||
}
|
}
|
||||||
|
@ -85,7 +83,6 @@ class TeaRepositoryTest extends FunctionalTestCase
|
||||||
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
||||||
|
|
||||||
$uid = 1;
|
$uid = 1;
|
||||||
/** @var Tea $model */
|
|
||||||
$model = $this->subject->findByUid($uid);
|
$model = $this->subject->findByUid($uid);
|
||||||
|
|
||||||
self::assertNotNull($model);
|
self::assertNotNull($model);
|
||||||
|
@ -101,7 +98,6 @@ class TeaRepositoryTest extends FunctionalTestCase
|
||||||
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
$this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv');
|
||||||
|
|
||||||
$uid = 3;
|
$uid = 3;
|
||||||
/** @var Tea $model */
|
|
||||||
$model = $this->subject->findByUid($uid);
|
$model = $this->subject->findByUid($uid);
|
||||||
|
|
||||||
$image = $model->getImage();
|
$image = $model->getImage();
|
||||||
|
|
Loading…
Reference in a new issue