spec\Newscoop\NewscoopBundle\Controller\TopicsControllerSpec::its_editAction_should_return_403_when_invalid_csrf_token PHP Method

its_editAction_should_return_403_when_invalid_csrf_token() public method

public its_editAction_should_return_403_when_invalid_csrf_token ( $request, $csrfTokenManagerAdapter )
    public function its_editAction_should_return_403_when_invalid_csrf_token($request, $csrfTokenManagerAdapter)
    {
        $csrfTokenManagerAdapter->isCsrfTokenValid('default', $this->token)->willReturn(false);
        $response = $this->editAction($request, 1);
        $response->getStatusCode()->shouldReturn(403);
        $response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse');
    }