Exemplo n.º 1
0
	/**
	 * Test JController::getTasks
	 */
	public function testGetTasks()
	{
		$controller = new TestController;

		$this->assertThat(
			$controller->getTasks(),
			$this->equalTo(
				array(
					'task1', 'task2', 'display'
				)
			),
			'Line:'.__LINE__.' The available tasks should be the public tasks in the derived controller plus "display".'
		);
	}
Exemplo n.º 2
0
 /**
  * Test JController::getTasks
  *
  * @covers  JController::getTasks
  */
 public function testGetTasks()
 {
     $class = new TestController();
     // The available tasks should be the public tasks in the derived controller plus "display".
     $this->assertEquals(array('task1', 'task2', 'display'), $class->getTasks());
 }
 /**
  * @testdox  The available tasks should be the public tasks in the derived controller plus "display".
  *
  * @covers   JControllerLegacy::getTasks
  */
 public function testGetTasks()
 {
     $class = new TestController();
     $this->assertEquals(array('task1', 'task2', 'display'), $class->getTasks());
 }