function testPerformOk()
  {
    $command = new UseViewCommand('/test.html');

    $handle = array(LIMB_DIR . '/class/template/template', '/test.html');

    $this->toolkit->expectOnce('setView', array($handle));

    $this->assertEqual($command->perform(), Limb :: STATUS_OK);
  }
  function testPerformOk()
  {
    RegisterTestingTemplate('/test.html', 'hello');

    $command = new UseViewCommand('/test.html');

    $this->assertEqual($command->perform(), LIMB_STATUS_OK);

    $toolkit =& Limb :: toolkit();
    $view = $toolkit->getView();

    $this->assertIsA($view, 'Template');
  }
 function performNotFound()
 {
     include_once LIMB_DIR . '/core/commands/UseViewCommand.class.php';
     $command = new UseViewCommand('/not_found.html');
     return $command->perform();
 }
 function performInitial()
 {
   include_once(LIMB_DIR . '/core/commands/UseViewCommand.class.php');
   $command = new UseViewCommand($this->template_name);
   return $command->perform();
 }
 function performInitDialog()
 {
     include_once LIMB_DIR . '/core/commands/UseViewCommand.class.php';
     $view_command = new UseViewCommand($this->template_name);
     return $view_command->perform();
 }