ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilChatroomInitialTaskTest.php
Go to the documentation of this file.
1 <?php
2 
3 require_once dirname(__FILE__) . '/../class.ilChatroomAbstractTaskTest.php';
4 
10 {
11 
15  protected $task;
16 
17  protected function setUp()
18  {
19  parent::setUp();
20 
21  require_once './Modules/Chatroom/classes/gui/class.ilChatroomInitialGUI.php';
22 
23  $this->createIlObjChatroomMock(15);
24  $this->createIlObjChatroomGUIMock($this->object);
25 
26  $this->task = $this->createMock(
27  'ilChatroomInitialGUI',
28  array('sendResponse', 'getRoomByObjectId', 'redirectIfNoPermission'),
29  array($this->gui)
30  );
31  }
32 
33  public function testExecuteDefaultDies()
34  {
35  $this->setExpectedException('Exception', 'METHOD_NOT_IN_USE');
36  $this->task->executeDefault(null);
37  }
38 }
Class ilChatroomInitialTaskTest.
Class ilChatroomAbstractTaskTest.