From 38ccf673d4eedd3921a79c6ae8ef77ed770a08b5 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 27 Nov 2023 12:58:54 +0100 Subject: [PATCH] [TASK] Add missing test case for fetching none existing tea 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 4a6c97c2..5643214c 100644 --- a/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php @@ -66,6 +66,16 @@ public function findAllSortsByTitleInAscendingOrder(): void self::assertSame(2, $result->current()->getUid()); } + /** + * @test + */ + public function findByUidForInexistentRecordReturnsNull(): void + { + $model = $this->subject->findByUid(1); + + self::assertNull($model); + } + /** * @test */