public function testUpdatedBy() { $this->assertNull($this->comment->getUpdatedBy()); $value = $this->getMockBuilder('Oro\\Bundle\\UserBundle\\Entity\\User')->disableOriginalConstructor()->getMock(); $this->assertEquals($this->comment, $this->comment->setUpdatedBy($value)); $this->assertEquals($value, $this->comment->getUpdatedBy()); }
/** * @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(); }