protected function SearchPluginCollectionTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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() {
$this->pluginManager = $this
->createMock('Drupal\\Component\\Plugin\\PluginManagerInterface');
$this->searchPluginCollection = new SearchPluginCollection($this->pluginManager, 'banana', [
'id' => 'banana',
'color' => 'yellow',
], 'fruit_stand');
}