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