public function ContextualLinkManagerTest::testProcessDefinitionWithoutGroup in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php \Drupal\Tests\Core\Menu\ContextualLinkManagerTest::testProcessDefinitionWithoutGroup()
Tests processDefinition() by passing a plugin definition without a group.
@expectedException \Drupal\Component\Plugin\Exception\PluginException
See also
\Drupal\Core\Menu\ContextualLinkManager::processDefinition()
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ ContextualLinkManagerTest.php, line 230 - Contains \Drupal\Tests\Core\Menu\ContextualLinkManagerTest.
Class
- ContextualLinkManagerTest
- @coversDefaultClass \Drupal\Core\Menu\ContextualLinkManager @group Menu
Namespace
Drupal\Tests\Core\MenuCode
public function testProcessDefinitionWithoutGroup() {
$definition = array(
'class' => '\\Drupal\\Core\\Menu\\ContextualLinkDefault',
'route_name' => 'example',
'id' => 'test_plugin',
);
$this->contextualLinkManager
->processDefinition($definition, 'test_plugin');
}