/**
  * Test entity getters & setters.
  */
 public function testGettersSetters()
 {
     $entity = new User();
     $entity->setActivationKey('activation-key');
     $entity->setDisplayName('display name');
     $entity->setEmail('*****@*****.**');
     $entity->setLogin('login');
     $collection = new ArrayCollection();
     $meta1 = new UserMeta();
     $meta1->setKey('meta-key');
     $meta1->setValue('meta-value');
     $meta1->setUser($entity);
     $collection->add($entity);
     $entity->setMetas($collection);
     $entity->setNicename('nice name');
     $entity->setPass('pass');
     $date = new \DateTime();
     $entity->setRegistered($date);
     $entity->setStatus(2);
     $entity->setUrl('http://www.url.com');
     $this->assertEquals('activation-key', $entity->getActivationKey());
     $this->assertEquals('display name', $entity->getDisplayName());
     $this->assertEquals('*****@*****.**', $entity->getEmail());
     $this->assertEquals('login', $entity->getLogin());
     $this->assertEquals($collection, $entity->getMetas());
     $this->assertEquals('nice name', $entity->getNicename());
     $this->assertEquals('pass', $entity->getPass());
     $this->assertEquals($date, $entity->getRegistered());
     $this->assertEquals(2, $entity->getStatus());
     $this->assertEquals('http://www.url.com', $entity->getUrl());
 }
 /**
  * Test entity getters & setters.
  */
 public function testGettersSetters()
 {
     $entity = new UserMeta();
     $user = new User();
     $user->setDisplayName('display name');
     $entity->setUser($user);
     $entity->setKey('fake key');
     $entity->setValue('fake value');
     $this->assertEquals('display name', $entity->getUser()->getDisplayName());
     $this->assertEquals('fake key', $entity->getKey());
     $this->assertEquals('fake value', $entity->getValue());
 }