From fddd50da3e71519397ce576ab65be7a66cdc67c7 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 5 Nov 2023 22:46:37 +0100 Subject: [PATCH] [CLEANUP] Convert one more mock to a stub (#977) This makes the purpose of the mock/stub more explicit. --- Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php b/Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php index f525fda..077917e 100644 --- a/Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php +++ b/Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php @@ -21,9 +21,9 @@ final class TeaRepositoryTest extends UnitTestCase parent::setUp(); if (\interface_exists(ObjectManagerInterface::class)) { - $objectManager = $this->createMock(ObjectManagerInterface::class); + $objectManagerStub = $this->createStub(ObjectManagerInterface::class); // @phpstan-ignore-next-line This line is 11LTS-specific, but we're running PHPStan on TYPO3 12. - $this->subject = new TeaRepository($objectManager); + $this->subject = new TeaRepository($objectManagerStub); } else { $this->subject = new TeaRepository(); }