function MenuTreeStorageTest::doTestEmptyStorage

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::doTestEmptyStorage()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Menu/MenuTreeStorageTest.php \Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::doTestEmptyStorage()
  3. 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 58

Class

MenuTreeStorageTest
Tests the menu tree storage.

Namespace

Drupal\KernelTests\Core\Menu

Code

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.