File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
tests/PHPCR/Tests/Util/Console/Command Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -95,22 +95,20 @@ 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 ];
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 ];
112
107
$ args ['--remove-prop ' ][] = $ prop ;
113
108
}
109
+ $ this ->node1
110
+ ->method ('setProperty ' )
111
+ ->with ($ this ->onConsecutiveCalls ($ setPropertyArguments ));
114
112
115
113
foreach ($ options ['addMixin ' ] as $ mixin ) {
116
114
$ this ->node1 ->expects ($ this ->once ())
You can’t perform that action at this time.
0 commit comments