| @@ 23-46 (lines=24) @@ | ||
| 20 | * |
|
| 21 | * @return void |
|
| 22 | */ |
|
| 23 | public function testGetCommand() |
|
| 24 | { |
|
| 25 | $configuration = $this->getConfigurationSet(); |
|
| 26 | $step = new StepPush( |
|
| 27 | $configuration, |
|
| 28 | 'my_personal_application-unstable', |
|
| 29 | 'blue', |
|
| 30 | true, |
|
| 31 | true, |
|
| 32 | "php app/console doctrine:mongodb:fixtures:load unstable" |
|
| 33 | ); |
|
| 34 | ||
| 35 | $this->assertEquals( |
|
| 36 | array( |
|
| 37 | '/usr/bin/cf', |
|
| 38 | 'push', |
|
| 39 | 'my_personal_application-unstable-blue', |
|
| 40 | '--no-route', |
|
| 41 | '-c', |
|
| 42 | 'php app/console doctrine:mongodb:fixtures:load unstable' |
|
| 43 | ), |
|
| 44 | $step->getCommand() |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Validate getCommand with flag --no-start |
|
| @@ 53-77 (lines=25) @@ | ||
| 50 | * |
|
| 51 | * @return void |
|
| 52 | */ |
|
| 53 | public function testGetCommandStartFalse() |
|
| 54 | { |
|
| 55 | $configuration = $this->getConfigurationSet(); |
|
| 56 | $step = new StepPush( |
|
| 57 | $configuration, |
|
| 58 | 'my_personal_application-unstable', |
|
| 59 | 'blue', |
|
| 60 | false, |
|
| 61 | true, |
|
| 62 | "php app/console doctrine:mongodb:fixtures:load unstable" |
|
| 63 | ); |
|
| 64 | ||
| 65 | $this->assertEquals( |
|
| 66 | array( |
|
| 67 | '/usr/bin/cf', |
|
| 68 | 'push', |
|
| 69 | 'my_personal_application-unstable-blue', |
|
| 70 | '--no-start', |
|
| 71 | '--no-route', |
|
| 72 | '-c', |
|
| 73 | 'php app/console doctrine:mongodb:fixtures:load unstable' |
|
| 74 | ), |
|
| 75 | $step->getCommand() |
|
| 76 | ); |
|
| 77 | } |
|
| 78 | } |
|
| 79 | ||