Class ilSessionTest.
More...
Class ilSessionTest.
Definition at line 28 of file ilLDAPServerTest.php.
◆ getLanguageMock()
| ilLDAPServerTest::getLanguageMock |
( |
| ) |
|
|
protected |
- Returns
- MockObject|ilLanguage
Definition at line 88 of file ilLDAPServerTest.php.
89 {
91 ->getMockBuilder(ilLanguage::class)
92 ->disableOriginalConstructor()
93 ->onlyMethods(['txt', 'getInstalledLanguages', 'loadLanguageModule'])
94 ->getMock();
95
97 }
References $lng.
Referenced by setUp().
◆ setGlobalVariable()
| ilLDAPServerTest::setGlobalVariable |
( |
string |
$name, |
|
|
mixed |
$value |
|
) |
| |
|
protected |
◆ setUp()
| ilLDAPServerTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 32 of file ilLDAPServerTest.php.
32 : void
33 {
35
37
39
42 'ilDB',
43 $this->getMockBuilder(ilDBInterface::class)->disableAutoReturnValueGeneration()->getMock()
44 );
45
47 'ilSetting',
48 $this->getMockBuilder(\
ILIAS\Administration\Setting::class)->getMock()
49 );
51 'ilErr',
52 $this->getMockBuilder(ilErrorHandling::class)->disableOriginalConstructor()->getMock()
53 );
54
55 $logger = $this->getMockBuilder(ilLogger::class)->disableOriginalConstructor()->getMockForAbstractClass();
56 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)->disableOriginalConstructor()->getMock();
57 $logger_factory->method('getComponentLogger')->willReturn($logger);
59 ilLoggerFactory::class,
60 $logger_factory
61 );
62
63 parent::setUp();
64 }
setGlobalVariable(string $name, mixed $value)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
References $DIC, getLanguageMock(), and setGlobalVariable().
◆ tearDown()
| ilLDAPServerTest::tearDown |
( |
| ) |
|
|
protected |
◆ $dic
The documentation for this class was generated from the following file: