function StaticMenuLinkOverridesTest::testReload
Tests the reload method.
@legacy-covers ::reload
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ StaticMenuLinkOverridesTest.php, line 25
Class
Namespace
Drupal\Tests\Core\MenuCode
public function testReload() : void {
$config_factory = $this->createMock('Drupal\\Core\\Config\\ConfigFactoryInterface');
$config_factory->expects($this->once())
->method('reset')
->with('core.menu.static_menu_link_overrides');
$static_override = new StaticMenuLinkOverrides($config_factory);
$static_override->reload();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.