Example #1
0
 /**
  * Add action un-enabled entity
  *
  * @throws \Exception
  */
 public function testAddActionNoEnabledEntity()
 {
     $form = $this->commentService->createForm();
     $postData = array('comment' => "test comment", 'alias' => $this->entityType->getAlias(), 'id' => $this->user->getId());
     $this->entityType->setIsEnabled(0);
     $this->assertNull($this->commentService->add($form, $postData));
 }