public function ContextualLinkDefaultTest::testGetOptions in Drupal 8
Same name and namespace in other branches
- 9 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 132
Class
- ContextualLinkDefaultTest
- @group Menu @coversDefaultClass \Drupal\Core\Menu\ContextualLinkDefault
Namespace
Drupal\Tests\Core\MenuCode
public function testGetOptions($options = [
'key' => 'value',
]) {
$this->pluginDefinition['options'] = $options;
$this
->setupContextualLinkDefault();
$this
->assertEquals($options, $this->contextualLinkDefault
->getOptions());
}