You are here

protected function MenuTreeStorageTest::doTestEmptyStorage in Drupal 9

Same name and namespace in other branches
  1. 8 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\Menu

Code

protected function doTestEmptyStorage() {
  $this
    ->assertEquals(0, $this->treeStorage
    ->countMenuLinks());
}