function DefaultLazyPluginCollectionTest::testRemoveInstanceId
@covers ::removeInstanceId
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php, line 149
Class
- DefaultLazyPluginCollectionTest
- @coversDefaultClass \Drupal\Core\Plugin\DefaultLazyPluginCollection[[api-linebreak]] @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testRemoveInstanceId() : void {
$this->setupPluginCollection($this->exactly(2));
$this->defaultPluginCollection
->removeInstanceId('cherry');
$config = $this->defaultPluginCollection
->getConfiguration();
$this->assertArrayNotHasKey('cherry', $config, 'After removing an instance, the configuration is updated.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.