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

its_attachTopicAction_should_return_403_status_code_when_no_permissions() public method

    public function its_attachTopicAction_should_return_403_status_code_when_no_permissions($request, $user)
    {
        $user->hasPermission('AttachTopicToArticle')->willReturn(false);
        $response = $this->attachTopicAction($request);
        $response->getStatusCode()->shouldReturn(403);
        $response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse');
    }