function TestMailManager::setDiscovery

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php \Drupal\Tests\Core\Mail\TestMailManager::setDiscovery()
  2. 8.9.x core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php \Drupal\Tests\Core\Mail\TestMailManager::setDiscovery()
  3. 11.x 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 209

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.