mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 18:46:11 +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:
parent
3a67ae5cbd
commit
fddd50da3e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue