protected function DevelGenerateManagerTest::setUp in Devel 8
Overrides UnitTestCase::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));
}