mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-25 19:16:13 +01:00

[CLEANUP] Convert one more mock to a stub (#977)

This makes the purpose of the mock/stub more explicit.
This commit is contained in:
Oliver Klee 2023-11-05 22:46:37 +01:00 committed by GitHub
parent 3a67ae5cbd
commit fddd50da3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}