@@ -59,29 +59,29 @@ public function test_build_command_cli_and_manifest_build_args()
59
59
60
60
public function test_build_command_cli_docker_args ()
61
61
{
62
- $ cliDockerArgs = ['FOO= BAR ' , 'FIZZ=BUZZ ' ];
62
+ $ cliDockerArgs = ['BAR=FOO ' , 'FIZZ=BAZZ ' , ' FIZZLE ' , ' BUZZLE ' ];
63
63
$ command = Docker::buildCommand ('my-project ' , 'production ' , $ cliDockerArgs , [], [], []);
64
64
$ expectedCommand = 'docker build --pull --file=production.Dockerfile --tag=my-project:production ' .
65
- "--FOO='BAR ' --FIZZ='BUZZ' . " ;
65
+ "--BAR='FOO ' --FIZZ='BAZZ' --FIZZLE --BUZZLE . " ;
66
66
$ this ->assertEquals ($ expectedCommand , $ command );
67
67
}
68
68
69
69
public function test_build_command_manifest_docker_args ()
70
70
{
71
- $ manifestDockerArgs = ['FOO ' => 'BAR ' , 'FIZZ ' => 'BUZZ ' ];
71
+ $ manifestDockerArgs = [[ 'FOO ' => 'BAR ' ], [ 'FIZZ ' => 'BUZZ ' ], ' FIZZLE ' , ' BUZZLE ' ];
72
72
$ command = Docker::buildCommand ('my-project ' , 'production ' , [], $ manifestDockerArgs , [], []);
73
73
$ expectedCommand = 'docker build --pull --file=production.Dockerfile --tag=my-project:production ' .
74
- "--FOO='BAR' --FIZZ='BUZZ' . " ;
74
+ "--FOO='BAR' --FIZZ='BUZZ' --FIZZLE --BUZZLE . " ;
75
75
$ this ->assertEquals ($ expectedCommand , $ command );
76
76
}
77
77
78
78
public function test_build_command_cli_and_manifest_docker_args ()
79
79
{
80
- $ cliDockerArgs = ['BAR=FOO ' , 'FIZZ=BAZZ ' ];
81
- $ manifestDockerArgs = ['FOO ' => 'BAR ' , 'FIZZ ' => 'BUZZ ' ];
80
+ $ cliDockerArgs = ['BAR=FOO ' , 'FIZZ=BAZZ ' , ' FIZZLE ' , ' BUZZLE ' ];
81
+ $ manifestDockerArgs = [[ 'FOO ' => 'BAR ' ], [ 'FIZZ ' => 'BUZZ ' ], ' FIZZLY ' , ' BUZZLY ' ];
82
82
$ command = Docker::buildCommand ('my-project ' , 'production ' , $ cliDockerArgs , $ manifestDockerArgs , [], []);
83
83
$ expectedCommand = 'docker build --pull --file=production.Dockerfile --tag=my-project:production ' .
84
- "--FOO='BAR' --FIZZ='BAZZ' --BAR='FOO' . " ;
84
+ "--FOO='BAR' --FIZZ='BAZZ' --FIZZLY --BUZZLY -- BAR='FOO' --FIZZLE --BUZZLE . " ;
85
85
$ this ->assertEquals ($ expectedCommand , $ command );
86
86
}
87
87
0 commit comments