StaticMenuLinkOverrides example

/** * Tests the reload method. * * @covers ::reload */
  public function testReload() {
    $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();
  }

  /** * Tests the loadOverride method. * * @dataProvider providerTestLoadOverride * * @covers ::loadOverride * @covers ::getConfig */
Home | Imprint | This part of the site doesn't use cookies.