AbstractCommonStepTest::testGetCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
/**
3
 * Test suite for the CheckApp step.
4
 */
5
6
namespace Graviton\Deployment\Tests\Steps\CloudFoundry;
7
8
use Graviton\Deployment\DeployScriptsTestCase;
9
use Graviton\Deployment\Steps\CloudFoundry\StepApp;
10
11
/**
12
 * @author   List of contributors <https://github.com/libgraviton/deploy-scripts/graphs/contributors>
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class AbstractCommonStepTest extends DeployScriptsTestCase
17
{
18
    /**
19
     * Validate getCommand
20
     *
21
     * @return void
22
     */
23
    public function testGetCommand()
24
    {
25
        $configuration = $this->getConfigurationSet();
26
27
        $step = $this->getMockBuilder('\Graviton\Deployment\Steps\CloudFoundry\AbstractCommonStep')
28
            ->setConstructorArgs(array($configuration, 'my_application', 'blue'))
29
            ->getMockForAbstractClass();
30
31
        $this->assertEquals(
32
            array('/usr/bin/cf' , null , 'my_application-blue'),
33
            $step->getCommand()
34
        );
35
    }
36
}
37