ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjChatroomAdminTest Class Reference

Class ilObjChatroomAdminTest. More...

+ Inheritance diagram for ilObjChatroomAdminTest:
+ Collaboration diagram for ilObjChatroomAdminTest:

Public Member Functions

 testConstructor ()
 

Protected Member Functions

 setUp ()
 

Detailed Description

Member Function Documentation

◆ setUp()

ilObjChatroomAdminTest::setUp ( )
protected

Definition at line 9 of file class.ilObjChatroomAdminTest.php.

References $ilBench.

10  {
11  if (defined('ILIAS_PHPUNIT_CONTEXT')) {
12  include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
13  ilUnitUtil::performInitialisation();
14  } else {
15  chdir(dirname(__FILE__));
16  chdir('../../../');
17  }
18 
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');
23  global $ilBench;
24  $ilBench = $ilBenchMock;
25 
26  require_once './Modules/Chatroom/classes/class.ilObjChatroomAdmin.php';
27  }
global $ilBench
Definition: ilias.php:18

◆ testConstructor()

ilObjChatroomAdminTest::testConstructor ( )

Definition at line 29 of file class.ilObjChatroomAdminTest.php.

30  {
31  define('DEBUG', false);
32  $admin = new ilObjChatroomAdmin();
33 
34  $this->assertInstanceOf('ilObjChatroomAdmin', $admin);
35  $this->assertEquals(0, $admin->getId());
36  $this->assertEquals('chta', $admin->getType());
37  }
Class ilObjChatroomAdmin.

The documentation for this class was generated from the following file: