@@ -18,24 +18,24 @@ protected function setUp()
18
18
public function provideItemsWithNotExistingLinks ()
19
19
{
20
20
return array (
21
- array (array ('route ' => 'not_existent ' )),
22
- array (array ('content ' => 'not_existent ' )),
23
- array (array ('linkType ' => 'route ' , 'route ' => 'not_existent ' )),
21
+ array (array ('route ' => 'not_existent ' ), array ( ' route ' => ' not_existent ' ) ),
22
+ array (array ('content ' => 'not_existent ' ), array ( ' content ' => ' not_existent ' ) ),
23
+ array (array ('linkType ' => 'route ' , 'route ' => 'not_existent ' ), array ( ' linkType ' => ' route ' ) ),
24
24
);
25
25
}
26
26
27
27
/** @dataProvider provideItemsWithNotExistingLinks */
28
- public function testAllowEmptyItemsReturnsItemWithoutURL (array $ options )
28
+ public function testAllowEmptyItemsReturnsItemWithoutURL (array $ firstOptions , array $ secondOptions )
29
29
{
30
- $ this ->innerFactory ->createItem ('Home ' , $ options )
30
+ $ this ->innerFactory ->createItem ('Home ' , $ firstOptions )
31
31
->willThrow ('Symfony\Component\Routing\Exception\RouteNotFoundException ' );
32
32
33
33
$ homeMenuItem = new \stdClass ();
34
- $ this ->innerFactory ->createItem ('Home ' , array () )->willReturn ($ homeMenuItem );
34
+ $ this ->innerFactory ->createItem ('Home ' , $ secondOptions )->willReturn ($ homeMenuItem );
35
35
36
36
$ factory = new QuietFactory ($ this ->innerFactory ->reveal (), $ this ->logger ->reveal (), true );
37
37
38
- $ this ->assertEquals ($ homeMenuItem , $ factory ->createItem ('Home ' , $ options ));
38
+ $ this ->assertEquals ($ homeMenuItem , $ factory ->createItem ('Home ' , $ firstOptions ));
39
39
}
40
40
41
41
public function testDisallowEmptyItemsReturnsNull ()
0 commit comments