public function its_deleteTopicAction_should_delete_topic($topicService, $request, $topic, EntityRepository $repository, $entityManager)
{
$entityManager->getRepository('Newscoop\\NewscoopBundle\\Entity\\Topic')->willReturn($repository);
$topic->getId()->willReturn(1);
$repository->findOneBy(array('id' => 1))->willReturn($topic);
$topicService->deleteTopic($topic)->shouldBeCalled();
$response = $this->deleteTopicAction($request, 1);
$response->shouldHaveType('Symfony\\Component\\HttpFoundation\\Response');
$response->getStatusCode()->shouldReturn(204);
}