1 | <?php |
||
9 | class CommandIntegration extends TestCase { |
||
10 | |||
11 | /** @test */ |
||
12 | public function success() |
||
13 | { |
||
14 | $command = new Command(); |
||
15 | |||
16 | $result = $command->execute(new Clear()); |
||
17 | |||
18 | $expectedArray = [ |
||
19 | [ |
||
20 | 'type' => 'info', |
||
21 | 'content' => 'Output text...', |
||
22 | ] |
||
23 | ]; |
||
24 | |||
25 | $this->assertNotNull($result['timestamp']); |
||
26 | $this->assertEquals($expectedArray, $result['lines']); |
||
27 | } |
||
28 | |||
29 | /** @test */ |
||
30 | public function unauthorized() |
||
50 | } |
||
51 |