Class ilObjChatroomAdminTest.
More...
◆ setUp()
ilObjChatroomAdminTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 9 of file class.ilObjChatroomAdminTest.php.
References $ilBench.
11 if (defined(
'ILIAS_PHPUNIT_CONTEXT')) {
12 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
13 ilUnitUtil::performInitialisation();
15 chdir(dirname(__FILE__));
19 require_once
'./Services/Utilities/classes/class.ilBenchmark.php';
20 $ilBenchMock = $this->createMock(
'ilBenchmark');
21 $ilBenchMock->expects($this->any())->method(
'start');
22 $ilBenchMock->expects($this->any())->method(
'stop');
24 $ilBench = $ilBenchMock;
26 require_once
'./Modules/Chatroom/classes/class.ilObjChatroomAdmin.php';
◆ testConstructor()
ilObjChatroomAdminTest::testConstructor |
( |
| ) |
|
Definition at line 29 of file class.ilObjChatroomAdminTest.php.
31 define(
'DEBUG',
false);
34 $this->assertInstanceOf(
'ilObjChatroomAdmin', $admin);
35 $this->assertEquals(0, $admin->getId());
36 $this->assertEquals(
'chta', $admin->getType());
Class ilObjChatroomAdmin.
The documentation for this class was generated from the following file: