/**
  * Test add and remove translation
  */
 public function testAddRemoveTranslation()
 {
     $category = new Category();
     $this->assertEquals(0, $category->getTranslations()->count());
     $category->addTranslation(new CategoryTranslation());
     $this->assertEquals(1, $category->getTranslations()->count());
     $tr = $category->getTranslations()->first();
     $category->removeTranslation($tr);
     $this->assertEquals(0, $category->getTranslations()->count());
 }