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';
31 define(
'DEBUG',
false);
34 $this->assertInstanceOf(
'ilObjChatroomAdmin', $admin);
35 $this->assertEquals(0, $admin->getId());
36 $this->assertEquals(
'chta', $admin->getType());
Class ilObjChatroomAdmin.
Class ilObjChatroomAdminTest.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'