Exemple #1
0
 public function testContact()
 {
     $this->assertNull($this->comment->getContact());
     $value = $this->getMockBuilder('OroCRM\\Bundle\\ContactBundle\\Entity\\Contact')->disableOriginalConstructor()->getMock();
     $this->assertEquals($this->comment, $this->comment->setContact($value));
     $this->assertEquals($value, $this->comment->getContact());
 }
Exemple #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();
 }