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:
Oliver Klee 2024-05-06 13:18:22 +02:00 committed by GitHub
parent 681d288653
commit b2d2f2a705
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -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);

View file

@ -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: []