Skip to content

Commit

Permalink
[CLEANUP] Convert one more mock to a stub (#977)
Browse files Browse the repository at this point in the history
This makes the purpose of the mock/stub more explicit.
  • Loading branch information
oliverklee authored Nov 5, 2023
1 parent 3a67ae5 commit fddd50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Unit/Domain/Repository/Product/TeaRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ protected function setUp(): void
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();
}
Expand Down

0 comments on commit fddd50d

Please sign in to comment.