public function testCoreModelCreateEntities()
 {
     //Create two Trophytype objects in the db, which can be easily identified, using the createEntities method
     $stringIdentifier = "createEntitiesTestIdentifier";
     $trophyType = new Trophytype();
     $trophyType->setName($stringIdentifier);
     $stringIdentifier1 = $stringIdentifier . "1";
     $trophyType1 = new Trophytype();
     $trophyType1->setName($stringIdentifier1);
     $this->trophyTypeModel->createEntities(new ArrayCollection([$trophyType, $trophyType1]), true);
     //Get two entities specified by the identifiers and assert their names
     $dbTrophyType = $this->trophyTypeModel->findOneBy(['name' => $stringIdentifier]);
     $this->assertEquals($stringIdentifier, $dbTrophyType->getName());
     $dbTrophyType1 = $this->trophyTypeModel->findOneBy(['name' => $stringIdentifier1]);
     $this->assertEquals($stringIdentifier1, $dbTrophyType1->getName());
 }
 public function testGetName()
 {
     $tt = new Trophytype();
     $tt->setName('Type1');
     $this->assertEquals('Type1', $tt->getName());
 }