spec\Newscoop\NewscoopBundle\Controller\TopicsControllerSpec::its_deleteAction_should_delete_single_topic PHP Метод

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

public its_deleteAction_should_delete_single_topic ( $request, $topic, $repository, $cacheService )
    public function its_deleteAction_should_delete_single_topic($request, $topic, $repository, $cacheService)
    {
        $repository->findOneBy(array('id' => 1))->willReturn($topic);
        $cacheService->clearNamespace('topic')->shouldBeCalled();
        $response = $this->deleteAction($request, 1);
        $response->getStatusCode()->shouldReturn(200);
        $response->shouldBeAnInstanceOf('Symfony\\Component\\HttpFoundation\\JsonResponse');
    }