Class ilMailTransportSettingsTest.
More...
◆ testNoMailWillResultInUpdateProcess()
ilMailTransportSettingsTest::testNoMailWillResultInUpdateProcess |
( |
| ) |
|
Definition at line 76 of file ilMailTransportSettingsTest.php.
References Sabre\Event\once().
78 $mailOptions = $this->getMockBuilder(\ilMailOptions::class)
79 ->disableOriginalConstructor()
80 ->setMethods(array(
'updateOptions'))
83 $mailOptions->expects($this->
once())->method(
'updateOptions');
84 $mailOptions->setIncomingType(2);
85 $mailOptions->setMailAddressOption(3);
88 $setting->adjust(
'',
'');
90 $this->assertEquals(0, $mailOptions->getIncomingType());
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
◆ testNothingWillBeAdjusted()
ilMailTransportSettingsTest::testNothingWillBeAdjusted |
( |
| ) |
|
Definition at line 96 of file ilMailTransportSettingsTest.php.
98 $mailOptions = $this->getMockBuilder(\ilMailOptions::class)
99 ->disableOriginalConstructor()
100 ->setMethods(array(
'updateOptions'))
103 $mailOptions->expects($this->never())->method(
'updateOptions');
104 $mailOptions->setIncomingType(2);
105 $mailOptions->setMailAddressOption(5);
108 $setting->adjust(
'test@ilias-test.de',
'someone@php-test.net');
110 $this->assertEquals(2, $mailOptions->getIncomingType());
111 $this->assertEquals(5, $mailOptions->getMailAddressOption());
◆ testOnlyFirstMailWillResultInUpdateProcess()
ilMailTransportSettingsTest::testOnlyFirstMailWillResultInUpdateProcess |
( |
| ) |
|
Definition at line 34 of file ilMailTransportSettingsTest.php.
References Sabre\Event\once().
36 $mailOptions = $this->getMockBuilder(\ilMailOptions::class)
37 ->disableOriginalConstructor()
38 ->setMethods(array(
'updateOptions'))
41 $mailOptions->expects($this->
once())->method(
'updateOptions');
42 $mailOptions->setIncomingType(2);
43 $mailOptions->setMailAddressOption(4);
46 $setting->adjust(
'test@ilias-test.de',
'');
49 $this->assertEquals(3, $mailOptions->getMailAddressOption());
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
◆ testOnlySecondMailWillResultInUpdateProcess()
ilMailTransportSettingsTest::testOnlySecondMailWillResultInUpdateProcess |
( |
| ) |
|
Definition at line 55 of file ilMailTransportSettingsTest.php.
References Sabre\Event\once().
57 $mailOptions = $this->getMockBuilder(\ilMailOptions::class)
58 ->disableOriginalConstructor()
59 ->setMethods(array(
'updateOptions'))
62 $mailOptions->expects($this->
once())->method(
'updateOptions');
63 $mailOptions->setIncomingType(2);
64 $mailOptions->setMailAddressOption(3);
67 $setting->adjust(
'',
'test@ilias-test.de');
70 $this->assertEquals(4, $mailOptions->getMailAddressOption());
once($eventName, callable $callBack, $priority=100)
Subscribe to an event exactly once.
◆ testSystemAsIncomingTypeWontUpdate()
ilMailTransportSettingsTest::testSystemAsIncomingTypeWontUpdate |
( |
| ) |
|
Definition at line 13 of file ilMailTransportSettingsTest.php.
15 $mailOptions = $this->getMockBuilder(\ilMailOptions::class)
16 ->disableOriginalConstructor()
17 ->setMethods(array(
'updateOptions'))
20 $mailOptions->setIncomingType(0);
21 $mailOptions->setMailAddressOption(3);
24 $setting->adjust(
'test@ilias-test.de',
'someone@php-test.net');
27 $this->assertEquals(0, $mailOptions->getIncomingType());
28 $this->assertEquals(3, $mailOptions->getMailAddressOption());
The documentation for this class was generated from the following file: