| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testDeployWithDifferentCurrentPath() |
||
| 17 | { |
||
| 18 | $currentPath = __TEMP_DIR__ . '/prod/public_html'; |
||
| 19 | |||
| 20 | $this->init(self::RECIPE); |
||
| 21 | $this->tester->run([ |
||
| 22 | 'deploy', |
||
| 23 | 'selector' => 'prod', |
||
| 24 | '-f' => self::RECIPE, |
||
| 25 | '-o' => ['current_path=' . $currentPath], |
||
| 26 | ], [ |
||
| 27 | 'verbosity' => Output::VERBOSITY_VERBOSE, |
||
| 28 | ]); |
||
| 29 | |||
| 30 | $display = $this->tester->getDisplay(); |
||
| 31 | self::assertEquals(0, $this->tester->getStatusCode(), $display); |
||
| 32 | self::assertFileExists($currentPath . '/README.md'); |
||
| 33 | self::assertFileExists($currentPath . '/config/test.yaml'); |
||
| 34 | } |
||
| 36 |