File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
tests/PHPCR/Tests/Util/Console/Command Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -95,23 +95,22 @@ public function testNodeUpdate($options)
9595 '--remove-mixin ' => [],
9696 ];
9797
98+ $ setPropertyArguments = [];
9899 foreach ($ options ['setProp ' ] as $ setProp ) {
99100 list ($ prop , $ value ) = $ setProp ;
100- $ this ->node1 ->expects ($ this ->at (0 ))
101- ->method ('setProperty ' )
102- ->with ($ prop , $ value );
103-
101+ $ setPropertyArguments [] = [$ prop , $ value , null ];
104102 $ args ['--set-prop ' ][] = $ prop .'= ' .$ value ;
105103 }
106104
107105 foreach ($ options ['removeProp ' ] as $ prop ) {
108- $ this ->node1 ->expects ($ this ->at (1 ))
109- ->method ('setProperty ' )
110- ->with ($ prop , null );
111-
106+ $ setPropertyArguments [] = [$ prop , null , null ];
112107 $ args ['--remove-prop ' ][] = $ prop ;
113108 }
114109
110+ $ this ->node1
111+ ->method ('setProperty ' )
112+ ->withConsecutive (...$ setPropertyArguments );
113+
115114 foreach ($ options ['addMixin ' ] as $ mixin ) {
116115 $ this ->node1 ->expects ($ this ->once ())
117116 ->method ('addMixin ' )
You can’t perform that action at this time.
0 commit comments