Code Duplication    Length = 28-29 lines in 2 locations

src/Tests/Steps/CloudFoundry/StepBindServiceTest.php 1 location

@@ 16-43 (lines=28) @@
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class StepBindServiceTest extends DeployScriptsTestCase
17
{
18
    /**
19
     * Validate getCommand
20
     *
21
     * @return void
22
     */
23
    public function testGetCommand()
24
    {
25
        $configuration = $this->getConfigurationSet();
26
        $step = new StepBindService(
27
            $configuration,
28
            'my_personal_application-unstable',
29
            'run-1234',
30
            'mongodb'
31
        );
32
33
        $this->assertEquals(
34
            array(
35
                '/usr/bin/cf',
36
                'bind-service',
37
                'my_personal_application-unstable-run-1234',
38
                'my_personal_application-unstable-mongodb',
39
            ),
40
            $step->getCommand()
41
        );
42
    }
43
}
44

src/Tests/Steps/CloudFoundry/StepSetEnvTest.php 1 location

@@ 16-44 (lines=29) @@
13
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
14
 * @link     http://swisscom.ch
15
 */
16
class StepSetEnvTest extends DeployScriptsTestCase
17
{
18
    /**
19
     * Validate getCommand
20
     *
21
     * @return void
22
     */
23
    public function testGetCommand()
24
    {
25
        $configuration = $this->getConfigurationSet();
26
        $step = new StepSetEnv(
27
            $configuration,
28
            'my_personal_application-unstable-blue',
29
            'SOME_ENV_VAR',
30
            'SOME_ENV_VAR_VALUE'
31
        );
32
33
        $this->assertEquals(
34
            array(
35
                '/usr/bin/cf',
36
                'set-env',
37
                'my_personal_application-unstable-blue',
38
                'SOME_ENV_VAR',
39
                'SOME_ENV_VAR_VALUE'
40
            ),
41
            $step->getCommand()
42
        );
43
    }
44
}
45