public function MenuTreeParametersTest::testExcludeRoot in Drupal 8
Same name and namespace in other branches
- 9 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 139
Class
- MenuTreeParametersTest
- Tests the menu link tree parameters value object.
Namespace
Drupal\Tests\Core\MenuCode
public function testExcludeRoot() {
$parameters = new MenuTreeParameters();
$parameters
->excludeRoot();
$this
->assertEquals(1, $parameters->minDepth);
}