protected function SearchPluginCollectionTest::setUp in Drupal 9
Same name and namespace in other branches
- 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\UnitCode
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');
}