You are here

public function MenuTreeParametersTest::testExcludeRoot in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testExcludeRoot()

Tests excludeRoot().

@covers ::excludeRoot

File

core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php, line 144
Contains \Drupal\Tests\Core\Menu\MenuTreeParametersTest.

Class

MenuTreeParametersTest
Tests the menu link tree parameters value object.

Namespace

Drupal\Tests\Core\Menu

Code

public function testExcludeRoot() {
  $parameters = new MenuTreeParameters();
  $parameters
    ->excludeRoot();
  $this
    ->assertEquals(1, $parameters->minDepth);
}