コード例 #1
0
ファイル: CaseEntityManagerTest.php プロジェクト: dairdr/crm
 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);
 }