protected function DaysTest::createPlugin in Message 8
Set the plugin with the given configuration.
Parameters
array $configuration: The plugin configuration.
2 calls to DaysTest::createPlugin()
- DaysTest::testFetch in tests/
src/ Kernel/ Plugin/ MessagePurge/ DaysTest.php - Tests the fetch method.
- DaysTest::testProcess in tests/
src/ Kernel/ Plugin/ MessagePurge/ DaysTest.php - Tests the processing of messages to be purged.
File
- tests/
src/ Kernel/ Plugin/ MessagePurge/ DaysTest.php, line 135
Class
- DaysTest
- Integration tests for the 'days' purge plugin.
Namespace
Drupal\Tests\message\Kernel\Plugin\MessagePurgeCode
protected function createPlugin(array $configuration) {
$this->plugin = $this->container
->get('plugin.manager.message.purge')
->createInstance('days', $configuration);
}