public function DefaultSingleLazyPluginCollectionTest::testGet in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/DefaultSingleLazyPluginCollectionTest.php \Drupal\Tests\Core\Plugin\DefaultSingleLazyPluginCollectionTest::testGet()
Tests the get() method.
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ DefaultSingleLazyPluginCollectionTest.php, line 35 - Contains \Drupal\Tests\Core\Plugin\DefaultSingleLazyPluginCollectionTest.
Class
- DefaultSingleLazyPluginCollectionTest
- @coversDefaultClass \Drupal\Core\Plugin\DefaultSingleLazyPluginCollection @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'));
}