public function PluginTestBase::getImmutableInstance in Purge 8.3
Retrieve a immutable invalidation object, which wraps the plugin.
3 calls to PluginTestBase::getImmutableInstance()
- PluginTestBase::testCodeContract in tests/
src/ Kernel/ Invalidation/ PluginTestBase.php - Tests the code contract strictly enforced on invalidation type plugins.
- PluginTestBase::testImmutable in tests/
src/ Kernel/ Invalidation/ PluginTestBase.php - Tests \Drupal\purge\Plugin\Purge\Invalidation\ImmutableInvalidation.
- PluginTestBase::testPluginIdAndDefinition in tests/
src/ Kernel/ Invalidation/ PluginTestBase.php - Test retrieving the plugin ID and definition.
File
- tests/
src/ Kernel/ Invalidation/ PluginTestBase.php, line 69
Class
- PluginTestBase
- Provides an abstract test class to thoroughly test invalidation types.
Namespace
Drupal\Tests\purge\Kernel\InvalidationCode
public function getImmutableInstance() : ImmutableInvalidationInterface {
return $this->purgeInvalidationFactory
->getImmutable($this->pluginId, $this->expressions[0]);
}