You are here

public function StaticMenuLinkOverridesTest::testReload in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php \Drupal\Tests\Core\Menu\StaticMenuLinkOverridesTest::testReload()

Tests the reload method.

@covers ::reload

File

core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php, line 36
Contains \Drupal\Tests\Core\Menu\StaticMenuLinkOverridesTest.

Class

StaticMenuLinkOverridesTest
@coversDefaultClass \Drupal\Core\Menu\StaticMenuLinkOverrides @group Menu

Namespace

Drupal\Tests\Core\Menu

Code

public function testReload() {
  $config_factory = $this
    ->getMock('Drupal\\Core\\Config\\ConfigFactoryInterface');
  $config_factory
    ->expects($this
    ->at(0))
    ->method('reset')
    ->with('core.menu.static_menu_link_overrides');
  $static_override = new StaticMenuLinkOverrides($config_factory);
  $static_override
    ->reload();
}