public function ActionTestBase::getPlugin in Organic groups 8
Returns an instance of the plugin under test.
An array of configuration relevant to the plugin instance.
Return value
\Drupal\Core\Action\ActionInterface The plugin instance.
11 calls to ActionTestBase::getPlugin()
- ActionTestBase::testAccess in tests/
src/ Kernel/ Action/ ActionTestBase.php - Checks that the user can perform the action on the membership.
- ActionTestBase::testNoAccess in tests/
src/ Kernel/ Action/ ActionTestBase.php - Checks that the user cannot perform the action on the membership.
- AddSingleOgMembershipRoleActionTest::testExecute in tests/
src/ Kernel/ Action/ AddSingleOgMembershipRoleActionTest.php - Checks if the action can be performed correctly.
- ApprovePendingOgMembershipActionTest::testExecute in tests/
src/ Kernel/ Action/ ApprovePendingOgMembershipActionTest.php - Checks if the action can be performed correctly.
- BlockOgMembershipActionTest::testExecute in tests/
src/ Kernel/ Action/ BlockOgMembershipActionTest.php - Checks if the action can be performed correctly.
File
- tests/
src/ Kernel/ Action/ ActionTestBase.php, line 187
Class
- ActionTestBase
- Base class for testing action plugins.
Namespace
Drupal\Tests\og\Kernel\ActionCode
public function getPlugin($configuration = []) {
/** @var \Drupal\Core\Action\ActionManager $plugin_manager */
$plugin_manager = $this->container
->get('plugin.manager.action');
return $plugin_manager
->createInstance($this->pluginId, $configuration);
}