예제 #1
0
 public function testCreateComment()
 {
     $case = $this->manager->createCase();
     $comment = $this->manager->createComment($case);
     $this->assertInstanceOf('OroCRM\\Bundle\\CaseBundle\\Entity\\CaseComment', $comment);
     $this->assertEquals($case, $comment->getCase());
 }
예제 #2
0
 /**
  * @param CaseEntity $case
  * @return CaseComment
  */
 public function createEntity(CaseEntity $case = null)
 {
     return $this->caseManager->createComment($case);
 }