From 3cdf8df7a09c6dc6ec3e4a989ff3e1603629adb1 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 18 Nov 2023 06:44:40 +0100 Subject: [PATCH] [CLEANUP] Inline some variables in the tests (#997) This makes the tests more concise while still keeping them readable. --- .../Domain/Repository/Product/TeaRepositoryTest.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php b/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php index 5bf7976..1fe5ee9 100644 --- a/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/Product/TeaRepositoryTest.php @@ -73,8 +73,7 @@ final class TeaRepositoryTest extends FunctionalTestCase { $this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv'); - $uid = 1; - $model = $this->subject->findByUid($uid); + $model = $this->subject->findByUid(1); self::assertInstanceOf(Tea::class, $model); } @@ -86,8 +85,7 @@ final class TeaRepositoryTest extends FunctionalTestCase { $this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv'); - $uid = 1; - $model = $this->subject->findByUid($uid); + $model = $this->subject->findByUid(1); self::assertInstanceOf(Tea::class, $model); self::assertSame('Earl Grey', $model->getTitle()); @@ -102,8 +100,7 @@ final class TeaRepositoryTest extends FunctionalTestCase { $this->importCSVDataSet(__DIR__ . '/../Fixtures/Product/Tea.csv'); - $uid = 3; - $model = $this->subject->findByUid($uid); + $model = $this->subject->findByUid(3); $image = $model->getImage(); self::assertInstanceOf(FileReference::class, $image);