You are here

protected function SearchPluginCollectionTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/tests/src/Unit/SearchPluginCollectionTest.php \Drupal\Tests\search\Unit\SearchPluginCollectionTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/search/tests/src/Unit/SearchPluginCollectionTest.php, line 38

Class

SearchPluginCollectionTest
@coversDefaultClass \Drupal\search\Plugin\SearchPluginCollection @group search

Namespace

Drupal\Tests\search\Unit

Code

protected function setUp() : void {
  $this->pluginManager = $this
    ->createMock('Drupal\\Component\\Plugin\\PluginManagerInterface');
  $this->searchPluginCollection = new SearchPluginCollection($this->pluginManager, 'banana', [
    'id' => 'banana',
    'color' => 'yellow',
  ], 'fruit_stand');
}