class SMTPMailSystemTestHelper in SMTP Authentication Support 8
Test helper for SMTPMailSystemTest.
Hierarchy
- class \Drupal\smtp\Plugin\Mail\SMTPMailSystem implements MailInterface, ContainerFactoryPluginInterface uses StringTranslationTrait
- class \Drupal\Tests\smtp\Unit\Plugin\Mail\SMTPMailSystemTestHelper
Expanded class hierarchy of SMTPMailSystemTestHelper
File
- tests/
src/ Unit/ Plugin/ Mail/ SMTPMailSystemTest.php, line 285
Namespace
Drupal\Tests\smtp\Unit\Plugin\MailView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SMTPMailSystem:: |
protected | property | ||
SMTPMailSystem:: |
protected | property | The config factory service. | |
SMTPMailSystem:: |
protected | property | The curent user service. | |
SMTPMailSystem:: |
protected | property | Email validator. | |
SMTPMailSystem:: |
protected | property | The File System service. | |
SMTPMailSystem:: |
protected | property | Logger. | |
SMTPMailSystem:: |
protected | property | Messenger. | |
SMTPMailSystem:: |
protected | property | The file mime type guesser service. | |
SMTPMailSystem:: |
protected | property | ||
SMTPMailSystem:: |
protected | function | Applies rerouting, if an address is set for that purpose. | |
SMTPMailSystem:: |
protected | function | Splits the input into parts based on the given boundary. | |
SMTPMailSystem:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
SMTPMailSystem:: |
public | function |
Concatenate and wrap the e-mail body for either plain-text or HTML emails. Overrides MailInterface:: |
|
SMTPMailSystem:: |
protected | function | Returns an array of name and email address from a string. | |
SMTPMailSystem:: |
protected | function | Returns a string that is contained within another string. | |
SMTPMailSystem:: |
public | function |
Send the e-mail message. Overrides MailInterface:: |
|
SMTPMailSystem:: |
protected | function | Strips the headers from the body part. | |
SMTPMailSystem:: |
public | function | Constructs a SMPTMailSystem object. | |
SMTPMailSystemTestHelper:: |
public | function | Exposes applyRerouting() for testing. | |
SMTPMailSystemTestHelper:: |
public | function | Exposes getComponents for testing. | |
SMTPMailSystemTestHelper:: |
public | function |
Dummy of smtpMailerSend. Overrides SMTPMailSystem:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |