From b2d2f2a7051ec6a37f3c9e852bf290c078ff2ba2 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 6 May 2024 13:18:22 +0200 Subject: [PATCH] [TASK] Ensure a type in a test (#1268) --- Tests/Functional/Domain/Repository/TeaRepositoryTest.php | 1 + phpstan-baseline.neon | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Tests/Functional/Domain/Repository/TeaRepositoryTest.php b/Tests/Functional/Domain/Repository/TeaRepositoryTest.php index d4a907b..d781747 100644 --- a/Tests/Functional/Domain/Repository/TeaRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/TeaRepositoryTest.php @@ -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); diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 0c9d45d..aab4991 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -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: []