* object in the session, while still indicating we have
* completed the login tasks for this application. */
$this->_tasklist = true;
+
+ return $this->_backend->redirect($tasklist_target);
}
if (!$processed && $need_display) {
$this->_tasklist->target = $url;
return $this->_backend->redirect($this->getLoginTasksUrl());
- } elseif ($processed && !$need_display) {
- return $this->_backend->redirect($tasklist_target);
}
}
public function testConfirmSeriesDisplay()
{
- $this->markTestIncomplete();
+ //$this->markTestIncomplete();
Horde_LoginTasks_Stub_Task::$executed = array();
$tasks = $this->_getLoginTasks(
array(
);
$_POST['logintasks_confirm_0'] = true;
$_POST['logintasks_confirm_1'] = true;
- $this->assertEquals(
- 'redirect',
+ $this->assertNull(
$tasks->runTasks(true)
);
$this->assertEquals(
),
Horde_LoginTasks_Stub_Task::$executed
);
- $this->assertContains(
- 'http:///services/logintasks.php?app=test',
- (string) $tasks->runTasks(false)
+ $_POST = array();
+ $this->assertNull(
+ $tasks->runTasks(false)
);
$this->assertEquals(
array(
'Horde_LoginTasks_Stub_ConfirmNo',
+ 'Horde_LoginTasks_Stub_Confirm',
+ 'Horde_LoginTasks_Stub_Task',
),
Horde_LoginTasks_Stub_Task::$executed
);