/**
  * Test entity getters & setters
  */
 public function testGettersSetters()
 {
     $entity = new TermTaxonomy();
     $entity->setCount(5);
     $entity->setDescription('term description');
     $parent = new TermTaxonomy();
     $parent->setDescription('parent term description');
     $entity->setParent($parent);
     $entity->setTaxonomy('term taxonomy');
     $term = new Term();
     $term->setName('term name');
     $entity->setTerm($term);
     $this->assertEquals(5, $entity->getCount());
     $this->assertEquals('term description', $entity->getDescription());
     $this->assertEquals('parent term description', $entity->getParent()->getDescription());
     $this->assertEquals('term taxonomy', $entity->getTaxonomy());
     $this->assertEquals('term name', $entity->getTerm()->getName());
 }
 /**
  * Test entity getters & setters.
  */
 public function testGettersSetters()
 {
     $entity = new Term();
     $entity->setGroup(3);
     $entity->setName('term name');
     $entity->setSlug('term-slug');
     $this->assertEquals(3, $entity->getGroup());
     $this->assertEquals('term name', $entity->getName());
     $this->assertEquals('term-slug', $entity->getSlug());
 }