You are here

public function DefaultSingleLazyPluginCollectionTest::testGet in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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\Plugin

Code

public function testGet() {
  $this
    ->setupPluginCollection($this
    ->once());
  $apple = $this->pluginInstances['apple'];
  $this
    ->assertSame($apple, $this->defaultPluginCollection
    ->get('apple'));
}