ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMailBaseTest Class Reference

Class ilMailBaseTest. More...

+ Inheritance diagram for ilMailBaseTest:
+ Collaboration diagram for ilMailBaseTest:

Protected Member Functions

 setUp ()
 
 setGlobalVariable (string $name, $value)
 

Detailed Description

Class ilMailBaseTest.

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 12 of file ilMailBaseTest.php.

Member Function Documentation

◆ setGlobalVariable()

ilMailBaseTest::setGlobalVariable ( string  $name,
  $value 
)
protected
Parameters
string$name
$value

Definition at line 32 of file ilMailBaseTest.php.

References $c, $DIC, $GLOBALS, and $name.

Referenced by ilMailOptionsTest\setUp(), ilMailTest\testExternalMailDeliveryToLocalRecipientsWorksAsExpected(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToDefaultTransport(), ilMailMimeTest\testMimMailDelegatesEmailDeliveryToThePassedTransporter(), ilMailMimeTest\testTransportFactoryWillReturnNullTransportIfExternalEmailDeliveryIsDisabled(), ilMailMimeTest\testTransportFactoryWillReturnSendmailTransportIfSmtpTransportIsDisabled(), and ilMailMimeTest\testTransportFactoryWillReturnSmtpTransportIfEnabled().

32  : void
33  {
34  global $DIC;
35 
36  $GLOBALS[$name] = $value;
37 
38  unset($DIC[$name]);
39  $DIC[$name] = function ($c) use ($name) {
40  return $GLOBALS[$name];
41  };
42  }
$c
Definition: cli.php:37
if($format !==null) $name
Definition: metadata.php:230
global $DIC
Definition: goto.php:24
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
+ Here is the caller graph for this function:

◆ setUp()

ilMailBaseTest::setUp ( )
protected

Definition at line 17 of file ilMailBaseTest.php.

References $GLOBALS.

17  : void
18  {
19  if (!defined('ANONYMOUS_USER_ID')) {
20  define('ANONYMOUS_USER_ID', 13);
21  }
22 
23  $GLOBALS['DIC'] = new Container();
24 
25  parent::setUp();
26  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:18
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64

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