protected function MailManagerTest::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php \Drupal\Tests\Core\Mail\MailManagerTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Mail/ MailManagerTest.php, line 73 - Contains \Drupal\Tests\Core\Mail\MailManagerTest.
Class
- MailManagerTest
- @coversDefaultClass \Drupal\Core\Mail\MailManager @group Mail
Namespace
Drupal\Tests\Core\MailCode
protected function setUp() {
parent::setUp();
// Prepare the default constructor arguments required by MailManager.
$this->cache = $this
->getMock('Drupal\\Core\\Cache\\CacheBackendInterface');
$this->moduleHandler = $this
->getMock('Drupal\\Core\\Extension\\ModuleHandlerInterface');
// 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));
}