public function testRemoveAction() { $this->deleteHandler->shouldReceive('delete')->with(self::COMMENT_ID)->once(); $this->responseFactory->shouldReceive('makeResponse')->once(); $this->removeController->removeAction(self::COMMENT_ID); }
public function removeAction(int $commentId) : Response { $this->deleteHandler->delete($commentId); return $this->responseFactory->makeResponse(); }