public function testAuthorAndUpdaterStoring() { $user = $this->getMock('Oro\\Bundle\\UserBundle\\Entity\\User'); $user1 = $this->getMock('Oro\\Bundle\\UserBundle\\Entity\\User'); $this->tag->setCreatedBy($user); $this->assertEquals($user, $this->tag->getCreatedBy()); $this->tag->setUpdatedBy($user1); $this->assertEquals($user1, $this->tag->getUpdatedBy()); }