You are here

public function MenuTrailByPathTestCase::testUrlNewsNewsOverview in Menu Trail By Path 7.3

Same name and namespace in other branches
  1. 7.2 menu_trail_by_path.test \MenuTrailByPathTestCase::testUrlNewsNewsOverview()

Test url: News » News overview

File

./menu_trail_by_path.test, line 139
Tests for menu_trail_by_path module.

Class

MenuTrailByPathTestCase
@file Tests for menu_trail_by_path module.

Code

public function testUrlNewsNewsOverview() {
  $this
    ->drupalGet($this->menuUrls['News » News overview']);
  $this
    ->assertMenuActiveTrail(array(
    $this
      ->menuUrlBasePath('News » News overview') => 'News overview',
  ), TRUE);

  // Also test the parent item, due to the tree url key construction of assertMenuActiveTrail we need two separate calls
  $this
    ->assertMenuActiveTrail(array(
    $this
      ->menuUrlBasePath('News') => 'News',
  ), TRUE);
}