You are here

class SMTPMailSystemTestHelper in SMTP Authentication Support 8

Test helper for SMTPMailSystemTest.

Hierarchy

Expanded class hierarchy of SMTPMailSystemTestHelper

File

tests/src/Unit/Plugin/Mail/SMTPMailSystemTest.php, line 285

Namespace

Drupal\Tests\smtp\Unit\Plugin\Mail
View source
class SMTPMailSystemTestHelper extends SMTPMailSystem {

  /**
   * Exposes getComponents for testing.
   */
  public function publicGetComponents($input) {
    return $this
      ->getComponents($input);
  }

  /**
   * Dummy of smtpMailerSend.
   */
  public function smtpMailerSend($mailerArr) {
    return TRUE;
  }

  /**
   * Exposes applyRerouting() for testing.
   */
  public function publicApplyRerouting($to, array $headers) {
    return $this
      ->applyRerouting($to, $headers);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SMTPMailSystem::$AllowHtml protected property
SMTPMailSystem::$configFactory protected property The config factory service.
SMTPMailSystem::$currentUser protected property The curent user service.
SMTPMailSystem::$emailValidator protected property Email validator.
SMTPMailSystem::$fileSystem protected property The File System service.
SMTPMailSystem::$logger protected property Logger.
SMTPMailSystem::$messenger protected property Messenger.
SMTPMailSystem::$mimeTypeGuesser protected property The file mime type guesser service.
SMTPMailSystem::$smtpConfig protected property
SMTPMailSystem::applyRerouting protected function Applies rerouting, if an address is set for that purpose.
SMTPMailSystem::boundarySplit protected function Splits the input into parts based on the given boundary.
SMTPMailSystem::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create
SMTPMailSystem::format public function Concatenate and wrap the e-mail body for either plain-text or HTML emails. Overrides MailInterface::format
SMTPMailSystem::getComponents protected function Returns an array of name and email address from a string.
SMTPMailSystem::getSubstring protected function Returns a string that is contained within another string.
SMTPMailSystem::mail public function Send the e-mail message. Overrides MailInterface::mail
SMTPMailSystem::removeHeaders protected function Strips the headers from the body part.
SMTPMailSystem::__construct public function Constructs a SMPTMailSystem object.
SMTPMailSystemTestHelper::publicApplyRerouting public function Exposes applyRerouting() for testing.
SMTPMailSystemTestHelper::publicGetComponents public function Exposes getComponents for testing.
SMTPMailSystemTestHelper::smtpMailerSend public function Dummy of smtpMailerSend. Overrides SMTPMailSystem::smtpMailerSend
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.