public function ContextualLinkManagerTest::testProcessDefinitionWithoutRoute 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::testProcessDefinitionWithoutRoute()
Tests processDefinition() by passing a plugin definition without a route.
@expectedException \Drupal\Component\Plugin\Exception\PluginException
See also
\Drupal\Core\Menu\ContextualLinkManager::processDefinition()
File
- core/
tests/ Drupal/ Tests/ Core/ Menu/ ContextualLinkManagerTest.php, line 214 - Contains \Drupal\Tests\Core\Menu\ContextualLinkManagerTest.
Class
- ContextualLinkManagerTest
- @coversDefaultClass \Drupal\Core\Menu\ContextualLinkManager @group Menu
Namespace
Drupal\Tests\Core\MenuCode
public function testProcessDefinitionWithoutRoute() {
$definition = array(
'class' => '\\Drupal\\Core\\Menu\\ContextualLinkDefault',
'group' => 'example',
'id' => 'test_plugin',
);
$this->contextualLinkManager
->processDefinition($definition, 'test_plugin');
}