spec\Newscoop\NewscoopBundle\Controller\TopicsControllerSpec::its_deleteAction_should_return_404_when_topic_not_found PHP 메소드

its_deleteAction_should_return_404_when_topic_not_found() 공개 메소드

    public function its_deleteAction_should_return_404_when_topic_not_found($request, $repository)
    {
        $repository->findOneBy(array('id' => 3))->willReturn(null);
        $response = $this->deleteAction($request, 3);
        $response->getStatusCode()->shouldReturn(404);
        $response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse');
    }