| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 89 | public function testExecuteWithoutStartDate(): void |
||
| 90 | { |
||
| 91 | $requestMock = \Mockery::mock(Request::class); |
||
|
1 ignored issue
–
show
|
|||
| 92 | $consoleMock = \Mockery::mock(AdapterInterface::class); |
||
| 93 | |||
| 94 | $this->optionsMock->shouldReceive('getLastSync')->andReturn(""); |
||
|
3 ignored issues
–
show
|
|||
| 95 | $this->optionsMock->shouldReceive('setLastSync'); |
||
| 96 | $this->optionsMock->shouldReceive('toArray'); |
||
| 97 | $this->writerMock->shouldReceive('toFile'); |
||
| 98 | |||
| 99 | $this->loggerMock->shouldReceive('info') |
||
| 100 | ->with(\Mockery::pattern('/(Syncing time entries since)/')) |
||
|
1 ignored issue
–
show
|
|||
| 101 | ->once(); |
||
| 102 | |||
| 103 | $this->loggerMock->shouldReceive('info') |
||
| 104 | ->with('Updated last sync time') |
||
|
1 ignored issue
–
show
|
|||
| 105 | ->once(); |
||
| 106 | |||
| 107 | $this->syncServiceMock->shouldReceive('sync'); |
||
| 108 | |||
| 109 | $this->assertEquals(1, $this->command->execute($requestMock, $consoleMock)); |
||
|
2 ignored issues
–
show
|
|||
| 110 | } |
||
| 111 | } |