function StaticMenuLinkOverridesTest::testConstruct

Tests the constructor.

@covers ::__construct

File

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

Class

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

Namespace

Drupal\Tests\Core\Menu

Code

public function testConstruct() {
    $config_factory = $this->getConfigFactoryStub([
        'core.menu.static_menu_link_overrides' => [],
    ]);
    $static_override = new StaticMenuLinkOverrides($config_factory);
    $this->assertAttributeEquals($config_factory, 'configFactory', $static_override);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.