You are here

public function MenuTrailByPathActiveTrailHtmlClassTest::testUrlNewsCategorya in Menu Trail By Path 8

Test url: News » Category A

File

tests/src/Functional/MenuTrailByPathActiveTrailHtmlClassTest.php, line 209

Class

MenuTrailByPathActiveTrailHtmlClassTest
Tests that the menu links have the correct css-classes.

Namespace

Drupal\Tests\menu_trail_by_path\Functional

Code

public function testUrlNewsCategorya() {
  $this
    ->drupalGet(clone $this->menuUrls['News » Category A']);
  $this
    ->assertMenuActiveTrail([
    $this
      ->menuUrlBasePath('News') => 'News',
    $this
      ->menuUrlBasePath('News » Category A') => 'Category A',
  ], TRUE);
}