ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilChatroomPostMessageTaskTest.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.ilChatroomPostMessageGUI.php';
21 
22  $this->createIlObjChatroomMock(15);
23  $this->createIlObjChatroomGUIMock($this->object);
24 
25  $this->task = $this->createMock(
26  'ilChatroomPostMessageGUI',
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 ilChatroomAbstractTaskTest.
Create styles array
The data for the language used.
Class ilChatroomPostMessageTaskTest.