MailerTest
extends TestCase
in package
Uses
ConfigPluginManagerTrait
Mailer Test Class
Tags
Table of Contents
- testBadFrom() : void
- Test bad from address.
- testBadFromInAddressObject() : void
- Test bad from address in Address object.
- testBadReplyTo() : void
- Test bad reply-to address.
- testBadTo() : void
- Test bad to address.
- testEmptyTo() : void
- Test empty to address.
- testFactoryConfiguration() : void
- Test that the factory configures the object correctly.
- testResetConnection() : void
- Test connection reset
- testSend() : void
- Test sending an email.
- testSendLink() : void
- Test sendLink
- testSendMimeMessageWithMultipartAlternativeContentType() : void
- Test sending an email using with text part and html part and multipart content type.
- testSendRecord() : void
- Test sendRecord
- testSendWithAddressListObjectInRecipient() : void
- Test sending an email using an address list object for the To field.
- testSendWithAddressObjectInRecipient() : void
- Test sending an email using an address object for the To field.
- testSendWithAddressObjectInSender() : void
- Test sending an email using an address object for the From field.
- testSendWithFromOverride() : void
- Test sending an email using a from address override.
- testSendWithFromOverrideAndReplyTo() : void
- Test sending an email using a from address override and an explicitly set reply-to address.
- testSendWithReplyTo() : void
- Test sending an email using an explicitly set reply-to address.
- testTooManyRecipients() : void
- Test that we only accept one recipient by default
- testTransportException() : void
- Test transport exception.
- testUnknownException() : void
- Test unknown exception.
- getMockConfigPluginManager() : MockObject|PluginManager
- Get a mock configuration plugin manager with the given configuration "files" available.
- getMockFailingConfigPluginManager() : MockObject|PluginManager
- Get a mock configuration plugin manager that will throw an exception.
Methods
testBadFrom()
Test bad from address.
public
testBadFrom() : void
Return values
void —testBadFromInAddressObject()
Test bad from address in Address object.
public
testBadFromInAddressObject() : void
Return values
void —testBadReplyTo()
Test bad reply-to address.
public
testBadReplyTo() : void
Return values
void —testBadTo()
Test bad to address.
public
testBadTo() : void
Return values
void —testEmptyTo()
Test empty to address.
public
testEmptyTo() : void
Return values
void —testFactoryConfiguration()
Test that the factory configures the object correctly.
public
testFactoryConfiguration() : void
Return values
void —testResetConnection()
Test connection reset
public
testResetConnection() : void
Return values
void —testSend()
Test sending an email.
public
testSend() : void
Return values
void —testSendLink()
Test sendLink
public
testSendLink() : void
Return values
void —testSendMimeMessageWithMultipartAlternativeContentType()
Test sending an email using with text part and html part and multipart content type.
public
testSendMimeMessageWithMultipartAlternativeContentType() : void
Tags
Return values
void —testSendRecord()
Test sendRecord
public
testSendRecord() : void
Return values
void —testSendWithAddressListObjectInRecipient()
Test sending an email using an address list object for the To field.
public
testSendWithAddressListObjectInRecipient() : void
Return values
void —testSendWithAddressObjectInRecipient()
Test sending an email using an address object for the To field.
public
testSendWithAddressObjectInRecipient() : void
Return values
void —testSendWithAddressObjectInSender()
Test sending an email using an address object for the From field.
public
testSendWithAddressObjectInSender() : void
Return values
void —testSendWithFromOverride()
Test sending an email using a from address override.
public
testSendWithFromOverride() : void
Return values
void —testSendWithFromOverrideAndReplyTo()
Test sending an email using a from address override and an explicitly set reply-to address.
public
testSendWithFromOverrideAndReplyTo() : void
Return values
void —testSendWithReplyTo()
Test sending an email using an explicitly set reply-to address.
public
testSendWithReplyTo() : void
Return values
void —testTooManyRecipients()
Test that we only accept one recipient by default
public
testTooManyRecipients() : void
Return values
void —testTransportException()
Test transport exception.
public
testTransportException() : void
Return values
void —testUnknownException()
Test unknown exception.
public
testUnknownException() : void
Return values
void —getMockConfigPluginManager()
Get a mock configuration plugin manager with the given configuration "files" available.
protected
getMockConfigPluginManager(array<string|int, mixed> $configs[, array<string|int, mixed> $default = [] ][, InvocationOrder|null $getExpect = null ][, InvocationOrder|null $hasExpect = null ]) : MockObject|PluginManager
Parameters
- $configs : array<string|int, mixed>
-
An associative array of configurations where key is the file (e.g. 'config') and value an array of configuration sections and directives
- $default : array<string|int, mixed> = []
-
Default configuration to return when no entry is found in $configs
- $getExpect : InvocationOrder|null = null
-
The expected invocation order for the get() method (null for any)
- $hasExpect : InvocationOrder|null = null
-
The expected invocation order for the has() method (null for any)
Return values
MockObject|PluginManager —getMockFailingConfigPluginManager()
Get a mock configuration plugin manager that will throw an exception.
protected
getMockFailingConfigPluginManager(Throwable $exception) : MockObject|PluginManager
Parameters
- $exception : Throwable
-
Exception to throw