You are here

public function StaticMenuLinkOverridesTest::testReload in Drupal 8

Tests the reload method.

@covers ::reload

File

core/tests/Drupal/Tests/Core/Menu/StaticMenuLinkOverridesTest.php, line 31

Class

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

Namespace

Drupal\Tests\Core\Menu

Code

public function testReload() {
  $config_factory = $this
    ->createMock('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();
}