@@ -213,11 +213,10 @@ public function test_display_redirects_when_disabled_and_closes_completed_tree()
213213 $ ruleset_operator ->method ('is_published ' )->with ('en ' )->willReturn (true );
214214 $ assigned_rules = array ();
215215 $ template = $ this ->createMock (\phpbb \template \template::class);
216- <<<<<<< HEAD
217216 $ block_var_call = 0 ;
218217 $ template ->expects (self ::exactly (5 ))
219218 ->method ('assign_block_vars ' )
220- ->willReturnCallback (function ($ block , $ variables ) use (&$ block_var_call ) {
219+ ->willReturnCallback (function ($ block , $ variables ) use (&$ block_var_call, & $ assigned_rules ) {
221220 $ expected = array (
222221 array ('rules ' , 'TITLE ' ),
223222 array ('rules ' , 'TITLE ' ),
@@ -232,22 +231,12 @@ public function test_display_redirects_when_disabled_and_closes_completed_tree()
232231 {
233232 self ::assertSame (array ('S_CLOSE_LIST ' => true ), $ variables );
234233 }
234+ if ($ block === 'rules ' && isset ($ variables ['U_ANCHOR ' ]))
235+ {
236+ $ assigned_rules [] = $ variables ;
237+ }
235238 $ block_var_call ++;
236239 });
237- =======
238- $ template ->expects (self ::exactly (5 ))->method ('assign_block_vars ' )->withConsecutive (
239- array ('rules ' , self ::arrayHasKey ('TITLE ' )),
240- array ('rules ' , self ::arrayHasKey ('TITLE ' )),
241- array ('rules ' , array ('S_CLOSE_LIST ' => true )),
242- array ('rules ' , self ::arrayHasKey ('TITLE ' )),
243- array ('navlinks ' , self ::arrayHasKey ('U_VIEW_FORUM ' ))
244- )->willReturnCallback (function ($ block , $ vars ) use (&$ assigned_rules ) {
245- if ($ block === 'rules ' && isset ($ vars ['U_ANCHOR ' ]))
246- {
247- $ assigned_rules [] = $ vars ;
248- }
249- });
250- >>>>>>> master
251240 $ helper = $ this ->getMockBuilder (\phpbb \controller \helper::class)
252241 ->disableOriginalConstructor ()
253242 ->getMock ();
0 commit comments