/**
  * Test entity getters & setters.
  */
 public function testGettersSetters()
 {
     $entity = new TermRelationships();
     $taxonomy = new TermTaxonomy();
     $taxonomy->setDescription('taxonomy description');
     $entity->setTaxonomy($taxonomy);
     $entity->setTermOrder(4);
     $this->assertEquals('taxonomy description', $entity->getTaxonomy()->getDescription());
     $this->assertEquals(4, $entity->getTermOrder());
 }
 /**
  * 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());
 }