Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Aug 23, 2019
1 parent 49c0b22 commit f22db6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Knp/Menu/Tests/MenuItemGetterSetterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testCreateMenuWithNameAndUri()
public function testCreateMenuWithTitle()
{
$title = 'This is a test item title';
$menu = $this->createMenu(null, null, ['title' => $title]);
$menu = $this->createMenu('', null, ['title' => $title]);
$this->assertEquals($title, $menu->getAttribute('title'));
}

Expand Down Expand Up @@ -67,7 +67,7 @@ public function testAttributes()

public function testDefaultAttribute()
{
$menu = $this->createMenu(null, null, ['id' => 'test_id']);
$menu = $this->createMenu('', null, ['id' => 'test_id']);
$this->assertEquals('test_id', $menu->getAttribute('id'));
$this->assertEquals('default_value', $menu->getAttribute('unknown_attribute', 'default_value'));
}
Expand Down

0 comments on commit f22db6a

Please sign in to comment.