public function MenuTreeParametersTest::testOnlyEnabledLinks in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testOnlyEnabledLinks()
- 9 core/tests/Drupal/Tests/Core/Menu/MenuTreeParametersTest.php \Drupal\Tests\Core\Menu\MenuTreeParametersTest::testOnlyEnabledLinks()
Tests onlyEnabledLinks().
@covers ::onlyEnabledLinks
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuTreeParametersTest.php, line 117
Class
- MenuTreeParametersTest
- Tests the menu link tree parameters value object.
Namespace
Drupal\Tests\Core\MenuCode
public function testOnlyEnabledLinks() {
$parameters = new MenuTreeParameters();
$parameters
->onlyEnabledLinks();
$this
->assertEquals(1, $parameters->conditions['enabled']);
}