function testPerformOk() { RegisterTestingTemplate('/close_popup.html', "<list:LIST id='params'>" . "<list:ITEM>{\$name},{\$value}</list:ITEM>". "</list:LIST>"); $command = new CloseDialogCommand(); $this->assertEqual($command->perform(), LIMB_STATUS_OK); $toolkit =& Limb :: toolkit(); $response =& $toolkit->getResponse(); $this->assertEqual($response->getResponseString(), 'from_dialog,1'); }
function performRedirect() { include_once LIMB_DIR . '/core/commands/CloseDialogCommand.class.php'; $command = new CloseDialogCommand(); return $command->perform(); }