You are here

public function ContextualLinkDefaultTest::testGetOptions in Zircon Profile 8

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

@covers ::getOptions

File

core/tests/Drupal/Tests/Core/Menu/ContextualLinkDefaultTest.php, line 137
Contains \Drupal\Tests\Core\Menu\ContextualLinkDefaultTest.

Class

ContextualLinkDefaultTest
@group Menu @coversDefaultClass \Drupal\Core\Menu\ContextualLinkDefault

Namespace

Drupal\Tests\Core\Menu

Code

public function testGetOptions($options = array(
  'key' => 'value',
)) {
  $this->pluginDefinition['options'] = $options;
  $this
    ->setupContextualLinkDefault();
  $this
    ->assertEquals($options, $this->contextualLinkDefault
    ->getOptions());
}