You are here

protected function TermSelectionTest::instantiatePlugin in Taxonomy container 8

Returns an instance of the plugin being tested.

Return value

\Drupal\taxonomy_container\Plugin\EntityReferenceSelection\TermSelection The plugin being tested.

1 call to TermSelectionTest::instantiatePlugin()
TermSelectionTest::testGetReferenceableEntities in tests/src/Unit/TermSelectionTest.php
Tests that terms are returned in the correct hierarchical format.

File

tests/src/Unit/TermSelectionTest.php, line 193

Class

TermSelectionTest
Tests selection of taxonomy terms by the Taxonomy Container module.

Namespace

Drupal\Tests\taxonomy_container\Unit

Code

protected function instantiatePlugin(array $configuration = []) {
  return new TermSelection($configuration, 'taxonomy_container', [], $this->entityTypeManager
    ->reveal(), $this->moduleHandler
    ->reveal(), $this->user
    ->reveal(), $this->entityFieldManager
    ->reveal(), $this->entityTypeBundleInfo
    ->reveal(), $this->entityRepository
    ->reveal());
}