function 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 58  
Class
- MenuTreeStorageTest
 - Tests the menu tree storage.
 
Namespace
Drupal\KernelTests\Core\MenuCode
protected function doTestEmptyStorage() {
  $this->assertEquals(0, $this->treeStorage
    ->countMenuLinks());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.