| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testDeployWithDifferentUpdateCodeTask() |
||
| 17 | { |
||
| 18 | $this->init(self::RECIPE); |
||
| 19 | $this->tester->run([ |
||
| 20 | 'deploy', |
||
| 21 | 'selector' => 'prod', |
||
| 22 | '-f' => self::RECIPE, |
||
| 23 | ], [ |
||
| 24 | 'verbosity' => Output::VERBOSITY_VERBOSE, |
||
| 25 | ]); |
||
| 26 | |||
| 27 | $display = $this->tester->getDisplay(); |
||
| 28 | $deployPath = $this->deployer->hosts->get('prod')->getDeployPath(); |
||
| 29 | |||
| 30 | self::assertEquals(0, $this->tester->getStatusCode(), $display); |
||
| 31 | self::assertFileExists($deployPath . '/current/uploaded.html'); |
||
| 32 | } |
||
| 34 |