public function MenuTreeParametersTest::testSetTopLevelOnly in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 133 - Contains \Drupal\Tests\Core\Menu\MenuTreeParametersTest.
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);
}