test/CommandBus/Config/InitHandlerTest.php 1 location
|
@@ 42-49 (lines=8) @@
|
| 39 |
|
/** |
| 40 |
|
* setUp |
| 41 |
|
*/ |
| 42 |
|
public function setUp() |
| 43 |
|
{ |
| 44 |
|
$this->instance = m::mock(InitHandler::class)->makePartial(); |
| 45 |
|
$this->command = m::mock(InitMessage::class)->makePartial(); |
| 46 |
|
$this->configStorage = m::mock(ConfigStorage::class); |
| 47 |
|
$this->command->shouldReceive('getConfigStorage')->zeroOrMoreTimes()->andReturn($this->configStorage); |
| 48 |
|
parent::setUp(); |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
/** |
| 52 |
|
* @param $writeResult |
test/CommandBus/Repository/CreateHandlerTest.php 1 location
|
@@ 44-53 (lines=10) @@
|
| 41 |
|
/** |
| 42 |
|
* setUp |
| 43 |
|
*/ |
| 44 |
|
public function setUp() |
| 45 |
|
{ |
| 46 |
|
$this->instance = m::mock(CreateHandler::class) |
| 47 |
|
->shouldAllowMockingProtectedMethods() |
| 48 |
|
->makePartial(); |
| 49 |
|
$this->filesystem = m::mock(Filesystem::class); |
| 50 |
|
$this->command = m::mock(CreateMessage::class); |
| 51 |
|
$this->command->shouldReceive('getFilesystem')->zeroOrMoreTimes()->andReturn($this->filesystem); |
| 52 |
|
parent::setUp(); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* @param $className |