You are here

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

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

Test url: News » Category A » Item A

File

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

Class

MenuTrailByPathTestCase
@file Tests for menu_trail_by_path module.

Code

public function testUrlNewsCategoryaItema() {
  $node3 = $this
    ->drupalCreateNode();
  $node3_path = array(
    'source' => 'node/' . $node3->nid,
    'alias' => 'news/category-a/item-a',
  );
  path_save($node3_path);
  $this
    ->drupalGet('node/' . $node3->nid);
  $this
    ->assertMenuActiveTrail(array(
    $this
      ->menuUrlBasePath('News') => 'News',
    $this
      ->menuUrlBasePath('News » Category A') => 'Category A',
  ), FALSE);
}