/** * Edit action can not be accessed (Permission denied) * * @throws \Exception */ public function testEditActionNoPermission() { $form = $this->commentService->createForm(); $comment = $this->createComment('Comment'); $this->setupUser(); $postData = array('comment' => 'edited'); $this->setExpectedException('Exception'); $this->commentService->edit($form, $comment, $postData); }