Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function createEntity()
 {
     return $this->caseManager->createCase();
 }