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()); }
/** * @param CaseEntity $case * @return CaseComment */ public function createEntity(CaseEntity $case = null) { return $this->caseManager->createComment($case); }