Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit a4d2346

Browse files
committed
Fix tests
1 parent 9bfe354 commit a4d2346

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/Unit/QuietFactoryTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ protected function setUp()
1818
public function provideItemsWithNotExistingLinks()
1919
{
2020
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')),
2424
);
2525
}
2626

2727
/** @dataProvider provideItemsWithNotExistingLinks */
28-
public function testAllowEmptyItemsReturnsItemWithoutURL(array $options)
28+
public function testAllowEmptyItemsReturnsItemWithoutURL(array $firstOptions, array $secondOptions)
2929
{
30-
$this->innerFactory->createItem('Home', $options)
30+
$this->innerFactory->createItem('Home', $firstOptions)
3131
->willThrow('Symfony\Component\Routing\Exception\RouteNotFoundException');
3232

3333
$homeMenuItem = new \stdClass();
34-
$this->innerFactory->createItem('Home', array())->willReturn($homeMenuItem);
34+
$this->innerFactory->createItem('Home', $secondOptions)->willReturn($homeMenuItem);
3535

3636
$factory = new QuietFactory($this->innerFactory->reveal(), $this->logger->reveal(), true);
3737

38-
$this->assertEquals($homeMenuItem, $factory->createItem('Home', $options));
38+
$this->assertEquals($homeMenuItem, $factory->createItem('Home', $firstOptions));
3939
}
4040

4141
public function testDisallowEmptyItemsReturnsNull()

0 commit comments

Comments
 (0)