Drupal 8  8.0.2
MailManagerTest Class Reference
Inheritance diagram for MailManagerTest:

Public Member Functions

 testGetInstance ()
 
- Public Member Functions inherited from UnitTestCase
 randomMachineName ($length=8)
 
 getConfigFactoryStub (array $configs=array())
 
 getConfigStorageStub (array $configs)
 
 getStringTranslationStub ()
 

Protected Member Functions

 setUp ()
 
 setUpMailManager ($interface=array())
 
- Protected Member Functions inherited from UnitTestCase
 setUp ()
 
 getRandomGenerator ()
 
 assertArrayEquals (array $expected, array $actual, $message=NULL)
 
 getBlockMockWithMachineName ($machine_name)
 
 getContainerWithCacheTagsInvalidator (CacheTagsInvalidatorInterface $cache_tags_validator)
 
 getClassResolverStub ()
 

Protected Attributes

 $cache
 
 $moduleHandler
 
 $configFactory
 
 $discovery
 
 $mailManager
 
 $definitions
 
- Protected Attributes inherited from UnitTestCase
 $randomGenerator
 
 $root
 

Detailed Description

Mail

Member Function Documentation

setUp ( )
protected

{}

References Drupal\cache(), and Drupal\moduleHandler().

Here is the call graph for this function:

setUpMailManager (   $interface = array())
protected

Sets up the mail manager for testing.

References Drupal\cache(), Drupal\configFactory(), UnitTestCase\getConfigFactoryStub(), UnitTestCase\getStringTranslationStub(), and Drupal\moduleHandler().

Referenced by MailManagerTest\testGetInstance().

Here is the call graph for this function:

Here is the caller graph for this function:

testGetInstance ( )

Tests the getInstance method.

::getInstance

References MailManagerTest\setUpMailManager().

Here is the call graph for this function:

Field Documentation

$definitions
protected
Initial value:
= array(
'php_mail' => array(
'id' => 'php_mail',
'class' => 'Drupal\Core\Mail\Plugin\Mail\PhpMail',
),
'test_mail_collector' => array(
'id' => 'test_mail_collector',
'class' => 'Drupal\Core\Mail\Plugin\Mail\TestMailCollector',
),
)

The documentation for this class was generated from the following file: