Migrated CliTestUtilsTrait to use PHPUnit mocks

This commit is contained in:
Alejandro Celaya
2022-10-22 12:46:16 +02:00
parent 983e3c9eaa
commit 58db902084
3 changed files with 25 additions and 20 deletions

View File

@@ -31,8 +31,8 @@ class ApplicationFactoryTest extends TestCase
'baz' => 'baz',
],
]);
$sm->setService('foo', $this->createCommandMock('foo')->reveal());
$sm->setService('bar', $this->createCommandMock('bar')->reveal());
$sm->setService('foo', $this->createCommandMock('foo'));
$sm->setService('bar', $this->createCommandMock('bar'));
$instance = ($this->factory)($sm);