mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 08:16:13 +01:00
[TASK] Ensure a type in a test (#1268)
This commit is contained in:
parent
681d288653
commit
b2d2f2a705
2 changed files with 2 additions and 5 deletions
|
@ -99,6 +99,7 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
||||||
$this->importCSVDataSet(__DIR__ . '/Fixtures/TeaWithImage.csv');
|
$this->importCSVDataSet(__DIR__ . '/Fixtures/TeaWithImage.csv');
|
||||||
|
|
||||||
$model = $this->subject->findByUid(1);
|
$model = $this->subject->findByUid(1);
|
||||||
|
self::assertInstanceOf(Tea::class, $model);
|
||||||
|
|
||||||
$image = $model->getImage();
|
$image = $model->getImage();
|
||||||
self::assertInstanceOf(FileReference::class, $image);
|
self::assertInstanceOf(FileReference::class, $image);
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
parameters:
|
parameters:
|
||||||
ignoreErrors:
|
ignoreErrors: []
|
||||||
-
|
|
||||||
message: "#^Cannot call method getImage\\(\\) on TTN\\\\Tea\\\\Domain\\\\Model\\\\Tea\\|null\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: Tests/Functional/Domain/Repository/TeaRepositoryTest.php
|
|
||||||
|
|
Loading…
Reference in a new issue