mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 13:46:11 +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');
|
||||
|
||||
$model = $this->subject->findByUid(1);
|
||||
self::assertInstanceOf(Tea::class, $model);
|
||||
|
||||
$image = $model->getImage();
|
||||
self::assertInstanceOf(FileReference::class, $image);
|
||||
|
|
|
@ -1,6 +1,2 @@
|
|||
parameters:
|
||||
ignoreErrors:
|
||||
-
|
||||
message: "#^Cannot call method getImage\\(\\) on TTN\\\\Tea\\\\Domain\\\\Model\\\\Tea\\|null\\.$#"
|
||||
count: 1
|
||||
path: Tests/Functional/Domain/Repository/TeaRepositoryTest.php
|
||||
ignoreErrors: []
|
||||
|
|
Loading…
Reference in a new issue