Skip to content

Commit

Permalink
Fixing unittest for nomenu rule ... again
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Sep 24, 2016
1 parent 37289db commit 8dc616b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ public function testParse()
public function testBuild()
{
// Test if the rule is properly skipped if an Itemid is set
$query = array('option' => 'com_content', 'view' => 'article', 'id' => '42:the-answer', 'Itemid' => '23');
$query = array('option' => 'com_test', 'view' => 'article', 'id' => '42:the-answer', 'Itemid' => '42');
$segments = array();
$this->object->build($query, $segments);
$this->assertEquals(array('option' => 'com_content', 'view' => 'article', 'id' => '42:the-answer', 'Itemid' => '23'), $query);
$this->assertEquals(array('option' => 'com_test', 'view' => 'article', 'id' => '42:the-answer', 'Itemid' => '42'), $query);
$this->assertEquals(array(), $segments);

// Test if a false view is properly not treated
Expand Down

0 comments on commit 8dc616b

Please sign in to comment.