Contao\CoreBundle\Controller\BackendController::confirmAction PHP Метод

confirmAction() публичный Метод

Renders the "invalid request token" screen.
public confirmAction ( ) : Response
Результат Symfony\Component\HttpFoundation\Response
    public function confirmAction()
    {
        $this->container->get('contao.framework')->initialize();
        $controller = new BackendConfirm();
        return $controller->run();
    }

Usage Example

 /**
  * Tests the controller actions.
  */
 public function testActions()
 {
     $framework = $this->getMockBuilder('Contao\\CoreBundle\\ContaoFramework')->disableOriginalConstructor()->getMock();
     $container = $this->mockKernel()->getContainer();
     $container->set('contao.framework', $framework);
     $controller = new BackendController();
     $controller->setContainer($container);
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->mainAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->loginAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->passwordAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->previewAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->confirmAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->fileAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->helpAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->pageAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->popupAction());
     $this->assertInstanceOf('Symfony\\Component\\HttpFoundation\\Response', $controller->switchAction());
 }