ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilChatroomGetPermissionsTaskTest.php
Go to the documentation of this file.
1 <?php
2 
3 require_once dirname(__FILE__) . '/../class.ilChatroomAbstractTaskTest.php';
4 
10 {
14  protected $task;
15 
16  protected function setUp()
17  {
18  parent::setUp();
19 
20  require_once './Modules/Chatroom/classes/gui/class.ilChatroomGetPermissionsTask.php';
21 
22  $this->createIlObjChatroomMock(15);
23  $this->createIlObjChatroomGUIMock($this->object);
24 
25  $this->task = $this->getMock(
26  'ilChatroomGetPermissionsGUI',
27  array('sendResponse', 'getRoomByObjectId', 'redirectIfNoPermission'),
28  array($this->gui)
29  );
30  }
31 
32  public function testExecuteDefaultDies()
33  {
34  $this->setExpectedException('Exception', 'METHOD_NOT_IN_USE');
35  $this->task->executeDefault(null);
36  }
37 }
Class ilChatroomGetPermissionsTaskTest.
Class ilChatroomAbstractTaskTest.
Create styles array
The data for the language used.