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)
95
95
'--remove-mixin ' => [],
96
96
];
97
97
98
+ $ setPropertyArguments = [];
98
99
foreach ($ options ['setProp ' ] as $ setProp ) {
99
100
list ($ prop , $ value ) = $ setProp ;
100
- $ this ->node1 ->expects ($ this ->at (0 ))
101
- ->method ('setProperty ' )
102
- ->with ($ prop , $ value );
103
-
101
+ $ setPropertyArguments [] = [$ prop , $ value , null ];
104
102
$ args ['--set-prop ' ][] = $ prop .'= ' .$ value ;
105
103
}
106
104
107
105
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 ];
112
107
$ args ['--remove-prop ' ][] = $ prop ;
113
108
}
114
109
110
+ $ this ->node1
111
+ ->method ('setProperty ' )
112
+ ->withConsecutive (...$ setPropertyArguments );
113
+
115
114
foreach ($ options ['addMixin ' ] as $ mixin ) {
116
115
$ this ->node1 ->expects ($ this ->once ())
117
116
->method ('addMixin ' )
You can’t perform that action at this time.
0 commit comments