示例#1
0
 public function testCase()
 {
     $this->assertNull($this->comment->getCase());
     $value = $this->getMockBuilder('OroCRM\\Bundle\\CaseBundle\\Entity\\CaseEntity')->disableOriginalConstructor()->getMock();
     $this->assertEquals($this->comment, $this->comment->setCase($value));
     $this->assertEquals($value, $this->comment->getCase());
 }
示例#2
0
 /**
  * @param CaseComment $comment
  */
 public function soapInit($comment)
 {
     $this->id = $comment->getId();
     $this->message = $comment->getMessage();
     $this->public = $comment->isPublic();
     $this->case = $this->getEntityId($comment->getCase());
     $this->contact = $this->getEntityId($comment->getContact());
     $this->updatedBy = $this->getEntityId($comment->getUpdatedBy());
     $this->owner = $this->getEntityId($comment->getOwner());
     $this->createdAt = $comment->getCreatedAt();
     $this->updatedAt = $comment->getUpdatedAt();
 }