protected function LazyPluginCollectionTestBase::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/LazyPluginCollectionTestBase.php \Drupal\Tests\Core\Plugin\LazyPluginCollectionTestBase::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ LazyPluginCollectionTestBase.php, line 50 - Contains \Drupal\Tests\Core\Plugin\LazyPluginCollectionTestBase.
Class
- LazyPluginCollectionTestBase
- Provides a base class for plugin collection tests.
Namespace
Drupal\Tests\Core\PluginCode
protected function setUp() {
$this->pluginManager = $this
->getMock('Drupal\\Component\\Plugin\\PluginManagerInterface');
$this->pluginManager
->expects($this
->any())
->method('getDefinitions')
->will($this
->returnValue($this
->getPluginDefinitions()));
}