You are here

public function StaticMenuLinkOverridesTest::testConstruct 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::testConstruct()

Tests the constructor.

@covers ::__construct

File

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

Class

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

Namespace

Drupal\Tests\Core\Menu

Code

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