public function DefaultLazyPluginCollectionTest::testGet in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest::testGet()
@covers ::get
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultLazyPluginCollectionTest.php, line 42 - Contains \Drupal\Tests\Core\Plugin\DefaultLazyPluginCollectionTest.
Class
- DefaultLazyPluginCollectionTest
- @coversDefaultClass \Drupal\Core\Plugin\DefaultLazyPluginCollection @group Plugin
Namespace
Drupal\Tests\Core\PluginCode
public function testGet() {
$this
->setupPluginCollection($this
->once());
$apple = $this->pluginInstances['apple'];
$this
->assertSame($apple, $this->defaultPluginCollection
->get('apple'));
}