From 58971754c4b53bc4437b3afaa92abcb3a1d2b1c0 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 27 Nov 2023 13:36:42 +0100 Subject: [PATCH] [TASK] Add missing test case for fetching none existing tea (#1017) Dedicated test cases were added in the past. This test case was not added yet. Resolves: #858 --- .../Domain/Repository/Product/TeaRepositoryTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php b/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php index 4a6c97c..5643214 100644 --- a/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php @@ -66,6 +66,16 @@ final class TeaRepositoryTest extends FunctionalTestCase self::assertSame(2, $result->current()->getUid()); } + /** + * @test + */ + public function findByUidForInexistentRecordReturnsNull(): void + { + $model = $this->subject->findByUid(1); + + self::assertNull($model); + } + /** * @test */