function MenuTreeStorageTest::doTestEmptyStorage
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::doTestEmptyStorage()
- 10 core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::doTestEmptyStorage()
- 11.x core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::doTestEmptyStorage()
Ensures that there are no menu links by default.
1 call to MenuTreeStorageTest::doTestEmptyStorage()
- MenuTreeStorageTest::testBasicMethods in core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuTreeStorageTest.php - Tests the tree storage when no tree was built yet.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Menu/ MenuTreeStorageTest.php, line 54
Class
- MenuTreeStorageTest
- Tests the menu tree storage.
Namespace
Drupal\KernelTests\Core\MenuCode
protected function doTestEmptyStorage() {
$this->assertEqual(0, $this->treeStorage
->countMenuLinks());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.