function MenuTreeParametersTest::testSetTopLevelOnly
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testSetTopLevelOnly()
- 10 core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testSetTopLevelOnly()
- 11.x core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testSetTopLevelOnly()
Tests setTopLevelOnly().
@covers ::setTopLevelOnly
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuTreeParametersTest.php, line 128
Class
- MenuTreeParametersTest
- Tests the menu link tree parameters value object.
Namespace
Drupal\Tests\Core\MenuCode
public function testSetTopLevelOnly() {
$parameters = new MenuTreeParameters();
$parameters->setTopLevelOnly();
$this->assertEquals(1, $parameters->maxDepth);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.