public function PluginTestBase::testDeleteProperty in Purge 8.3
Test deleting a property.
See also
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface::deleteProperty
File
- tests/
src/ Kernel/ Invalidation/ PluginTestBase.php, line 128
Class
- PluginTestBase
- Provides an abstract test class to thoroughly test invalidation types.
Namespace
Drupal\Tests\purge\Kernel\InvalidationCode
public function testDeleteProperty() : void {
$i = $this
->getInstance();
$i
->setStateContext('purger_a');
$i
->setProperty('myprop', 1234);
$i
->deleteProperty('myprop');
$this
->assertSame(NULL, $i
->getProperty('myprop'));
}