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');
}