public function testSetId()
 {
     $id = 1;
     $localeEntity = new LocaleEntity();
     $localeEntity->setId($id);
     $this->assertEquals($id, $localeEntity->getId());
 }
 public function testGetFlag()
 {
     $self = $this;
     $this->em->transactional(function ($em) use($self) {
         $locale = new localeEntity();
         $locale->setName('French');
         $locale->setLocale('fr_FR');
         $locale->setActiveFront(1);
         $locale->setActiveBack(1);
         $self->getLocaleMapper()->insert($locale);
     });
     $this->em->flush();
     $this->em->clear();
     $locales = $this->getLocaleMapper()->findAll();
     $locale = $locales[0];
     $flag = $locale->getFlag();
     $this->assertEquals($flag, '/lib/images/flag/fr');
     $locale->setLocale('');
     $flag = $locale->getFlag();
     $this->assertEquals($flag, '');
 }