| @@ 62-74 (lines=13) @@ | ||
| 59 | * |
|
| 60 | * @return void |
|
| 61 | */ |
|
| 62 | public function testStartApplication() |
|
| 63 | { |
|
| 64 | $processDouble = $this->getMock('\Symfony\Component\Process\ProcessBuilder'); |
|
| 65 | ||
| 66 | DeploymentUtils::startApplication( |
|
| 67 | $this->getDeploymentDouble($processDouble, ['registerSteps' => 1, 'deploy' => 1]), |
|
| 68 | $this->getOutputDouble(), |
|
| 69 | $this->getConfigurationSet(), |
|
| 70 | 'test-test', |
|
| 71 | 'graviton', |
|
| 72 | 'blue' |
|
| 73 | ); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @return void |
|
| @@ 112-122 (lines=11) @@ | ||
| 109 | /** |
|
| 110 | * @return void |
|
| 111 | */ |
|
| 112 | public function testSetEnvironmentVariables() |
|
| 113 | { |
|
| 114 | $processDouble = $this->getMock('\Symfony\Component\Process\ProcessBuilder'); |
|
| 115 | ||
| 116 | DeploymentUtils::setEnvironmentVariables( |
|
| 117 | $this->getDeploymentDouble($processDouble, array('registerSteps' => 1, 'deploy' => 1)), |
|
| 118 | $this->getOutputDouble(), |
|
| 119 | $this->getConfigurationSet(), |
|
| 120 | 'Test_test-unstable-blue' |
|
| 121 | ); |
|
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * @return void |
|
| @@ 127-139 (lines=13) @@ | ||
| 124 | /** |
|
| 125 | * @return void |
|
| 126 | */ |
|
| 127 | public function testAddRoute() |
|
| 128 | { |
|
| 129 | $processDouble = $this->getMock('\Symfony\Component\Process\ProcessBuilder'); |
|
| 130 | ||
| 131 | DeploymentUtils::addRoute( |
|
| 132 | $this->getDeploymentDouble($processDouble, array('registerSteps' => 1, 'deploy' => 1)), |
|
| 133 | $this->getOutputDouble(), |
|
| 134 | $this->getConfigurationSet(), |
|
| 135 | 'Test_test-unstable', |
|
| 136 | 'blue', |
|
| 137 | 'Test_test-unstable' |
|
| 138 | ); |
|
| 139 | } |
|
| 140 | ||
| 141 | /** |
|
| 142 | * Provides an instance of the Deployment class. |
|