You are here

public function TestMailManager::setDiscovery in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php \Drupal\Tests\Core\Mail\TestMailManager::setDiscovery()

Sets the discovery for the manager.

Parameters

\Drupal\Component\Plugin\Discovery\DiscoveryInterface $discovery: The discovery object.

File

core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php, line 138
Contains \Drupal\Tests\Core\Mail\MailManagerTest.

Class

TestMailManager
Provides a testing version of MailManager with an empty constructor.

Namespace

Drupal\Tests\Core\Mail

Code

public function setDiscovery(DiscoveryInterface $discovery) {
  $this->discovery = $discovery;
}