| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 27 | public function testExecute() |
||
| 28 | { |
||
| 29 | $exitCode = $this->tester->run( |
||
| 30 | array( |
||
| 31 | 'command' => SyncFSCommand::COMMAND_NAME |
||
| 32 | ), |
||
| 33 | array( |
||
| 34 | 'verbosity' => OutputInterface::VERBOSITY_DEBUG |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | |||
| 38 | $display = trim($this->tester->getDisplay()); |
||
| 39 | |||
| 40 | $this->assertEquals(0, $exitCode, $display); |
||
| 41 | |||
| 42 | $this->assertRegExp( |
||
| 43 | '/Finished in [0-9\.]+ seconds!/', |
||
| 44 | $display, |
||
| 45 | 'Wrong output of sync:fs command detected.' |
||
| 46 | ); |
||
| 47 | |||
| 48 | $this->assertTrue( |
||
| 49 | file_exists($this->tmpDir . '/dst'), |
||
| 50 | 'Did not sync. Have you changed config.yml?' |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |