function DevelGenerateManagerTest::setUp
Same name in other branches
- 4.x devel_generate/tests/src/Unit/DevelGenerateManagerTest.php \Drupal\Tests\devel_generate\Unit\DevelGenerateManagerTest::setUp()
- 5.x devel_generate/tests/src/Unit/DevelGenerateManagerTest.php \Drupal\Tests\devel_generate\Unit\DevelGenerateManagerTest::setUp()
File
-
devel_generate/
tests/ src/ DevelGenerateManagerTest.php, line 48
Class
- DevelGenerateManagerTest
- @coversDefaultClass \Drupal\devel_generate\DevelGeneratePluginManager @group devel_generate
Namespace
Drupal\Tests\devel_generateCode
protected function setUp() {
parent::setUp();
// Mock a Discovery object to replace AnnotationClassDiscovery.
$this->discovery = $this->getMock('Drupal\\Component\\Plugin\\Discovery\\DiscoveryInterface');
$this->discovery
->expects($this->any())
->method('getDefinitions')
->will($this->returnValue($this->definitions));
}