3 require_once
'Services/Mail/test/ilMailBaseTest.php';
11 $database = $this->getMockBuilder(
'ilDBInterface')
12 ->disableOriginalConstructor()
14 $queryMock = $this->getMockBuilder(
'ilPDOStatement')
15 ->disableOriginalConstructor()
16 ->setMethods(
array(
'fetchRow'))
19 $object = $this->getMockBuilder(stdClass::class)->getMock();
20 $object->cronjob_notification =
false;
21 $object->signature =
'smth';
22 $object->linebreak =
false;
23 $object->incoming_type =
'MY';
24 $object->mail_address_option = 0;
25 $object->email =
'test@test.com';
26 $object->second_email =
'ilias@ilias.com';
29 $queryMock->method(
'fetchRow')->willReturn($object);
30 $database->expects($this->atLeastOnce())->method(
'queryF')->willReturn($queryMock);
31 $database->method(
'replace')->willReturn(0);
35 $settings = $this->getMockBuilder(
'\ilSetting')->disableOriginalConstructor()->setMethods(
array(
'set',
'get'))->getMock();
Class ilMailOptions this class handles user mails.
Create styles array
The data for the language used.
setGlobalVariable($name, $value)