public function WorkbenchAccessDerivativeDiscoveryTest::testDerivativeDiscovery in Workbench Access 8
Tests that derivative plugins work.
File
- tests/
src/ Kernel/ WorkbenchAccessDerivativeDiscoveryTest.php, line 36
Class
- WorkbenchAccessDerivativeDiscoveryTest
- Tests plugin discovery respects derivative discovery.
Namespace
Drupal\Tests\workbench_access\KernelCode
public function testDerivativeDiscovery() {
$manager = $this->container
->get('plugin.manager.workbench_access.scheme');
foreach ($manager
->getDefinitions() as $id => $name) {
$this
->assertNotNull($manager
->createInstance($id));
}
}