31 : void
32 {
33 parent::setUp();
34
35 $this->database = $this->getMockBuilder(ilDBInterface::class)
36 ->getMock();
37 $queryMock = $this->getMockBuilder(ilDBStatement::class)
38 ->getMock();
39
40 $this->object = new stdClass();
41 $this->object->cronjob_notification = false;
42 $this->object->signature = 'smth';
43 $this->object->linebreak = 0;
44 $this->object->incoming_type = 1;
45 $this->object->mail_address_option = 0;
46 $this->object->email = 'test@test.com';
47 $this->object->second_email = 'ilias@ilias.com';
48
49 $this->database->expects($this->once())->method('queryF')->willReturn($queryMock);
50 $this->database->expects($this->once())->method('fetchObject')->willReturn($this->object);
51 $this->database->method('replace')->willReturn(0);
53 }
setGlobalVariable(string $name, $value)