예제 #1
0
 public function setUp()
 {
     parent::setUp();
     // Prepare a universe with one planet.
     // 1) an terrestrial planet
     $universeEntity = new UniverseEntity();
     $universeEntity->setMaxCelestialBodies(1);
     $universeEntity->setMaxSystems(1);
     $universeEntity->setMinCelestialBodies(1);
     $universeEntity->setMinSystems(1);
     $this->em->persist($universeEntity);
     $galaxyEntity = new GalaxyEntity();
     $galaxyEntity->setNumber(0);
     $galaxyEntity->setUniverse($universeEntity);
     $this->em->persist($galaxyEntity);
     $systemEntity = new SystemEntity();
     $systemEntity->setGalaxy($galaxyEntity);
     $systemEntity->setNumber(0);
     $this->em->persist($systemEntity);
     $terrestrialPlanetEntity = new TerrestrialPlanetEntity();
     $terrestrialPlanetEntity->setNumber(0);
     $terrestrialPlanetEntity->setSystem($systemEntity);
     $this->em->persist($terrestrialPlanetEntity);
     $this->em->flush();
     $this->celestialBody = $terrestrialPlanetEntity;
     /* @var $configBuilder \Codeception\Specify\ConfigBuilder */
     $configBuilder = $this->specifyConfig();
     $configBuilder->shallowClone();
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     $universeEntity = new UniverseEntity();
     $universeEntity->setMaxCelestialBodies(2);
     $universeEntity->setMaxSystems(2);
     $universeEntity->setMinCelestialBodies(1);
     $universeEntity->setMinSystems(1);
     $this->em->persist($universeEntity);
     $asteroidSpecs = new CelestialBodyTypeSpecsEntity();
     $asteroidSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $asteroidSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $asteroidSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $asteroidSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $asteroidSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $asteroidSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $asteroidSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $asteroidSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $asteroidSpecs->getMaxSpecs()->setGravity(5.0);
     $asteroidSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $asteroidSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $asteroidSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $asteroidSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $asteroidSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $asteroidSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $asteroidSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $asteroidSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $asteroidSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $asteroidSpecs->getMinSpecs()->setGravity(0.5);
     $asteroidSpecs->getMinSpecs()->setLivingConditions(0.5);
     $asteroidSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_ASTEROID);
     $asteroidSpecs->setUniverse($universeEntity);
     $this->em->persist($asteroidSpecs);
     $electricityStormSpecs = new CelestialBodyTypeSpecsEntity();
     $electricityStormSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $electricityStormSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $electricityStormSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $electricityStormSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $electricityStormSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $electricityStormSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $electricityStormSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $electricityStormSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $electricityStormSpecs->getMaxSpecs()->setGravity(5.0);
     $electricityStormSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $electricityStormSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $electricityStormSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $electricityStormSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $electricityStormSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $electricityStormSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $electricityStormSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $electricityStormSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $electricityStormSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $electricityStormSpecs->getMinSpecs()->setGravity(0.5);
     $electricityStormSpecs->getMinSpecs()->setLivingConditions(0.5);
     $electricityStormSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_ELECTRICITY_STORM);
     $electricityStormSpecs->setUniverse($universeEntity);
     $this->em->persist($electricityStormSpecs);
     $gasGiantSpecs = new CelestialBodyTypeSpecsEntity();
     $gasGiantSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $gasGiantSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $gasGiantSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $gasGiantSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $gasGiantSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $gasGiantSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $gasGiantSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $gasGiantSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $gasGiantSpecs->getMaxSpecs()->setGravity(5.0);
     $gasGiantSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $gasGiantSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $gasGiantSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $gasGiantSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $gasGiantSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $gasGiantSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $gasGiantSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $gasGiantSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $gasGiantSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $gasGiantSpecs->getMinSpecs()->setGravity(0.5);
     $gasGiantSpecs->getMinSpecs()->setLivingConditions(0.5);
     $gasGiantSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_GAS_GIANT);
     $gasGiantSpecs->setUniverse($universeEntity);
     $this->em->persist($gasGiantSpecs);
     $gravimetricAnomalySpecs = new CelestialBodyTypeSpecsEntity();
     $gravimetricAnomalySpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $gravimetricAnomalySpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $gravimetricAnomalySpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $gravimetricAnomalySpecs->getMaxSpecs()->setGravity(5.0);
     $gravimetricAnomalySpecs->getMaxSpecs()->setLivingConditions(2.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $gravimetricAnomalySpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $gravimetricAnomalySpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $gravimetricAnomalySpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $gravimetricAnomalySpecs->getMinSpecs()->setGravity(0.5);
     $gravimetricAnomalySpecs->getMinSpecs()->setLivingConditions(0.5);
     $gravimetricAnomalySpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_GRAVIMETRIC_ANOMALY);
     $gravimetricAnomalySpecs->setUniverse($universeEntity);
     $this->em->persist($gravimetricAnomalySpecs);
     $iceGiantSpecs = new CelestialBodyTypeSpecsEntity();
     $iceGiantSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $iceGiantSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $iceGiantSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $iceGiantSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $iceGiantSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $iceGiantSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $iceGiantSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $iceGiantSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $iceGiantSpecs->getMaxSpecs()->setGravity(5.0);
     $iceGiantSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $iceGiantSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $iceGiantSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $iceGiantSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $iceGiantSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $iceGiantSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $iceGiantSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $iceGiantSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $iceGiantSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $iceGiantSpecs->getMinSpecs()->setGravity(0.5);
     $iceGiantSpecs->getMinSpecs()->setLivingConditions(0.5);
     $iceGiantSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_ICE_GIANT);
     $iceGiantSpecs->setUniverse($universeEntity);
     $this->em->persist($iceGiantSpecs);
     $ionStormSpecs = new CelestialBodyTypeSpecsEntity();
     $ionStormSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $ionStormSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $ionStormSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $ionStormSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $ionStormSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $ionStormSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $ionStormSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $ionStormSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $ionStormSpecs->getMaxSpecs()->setGravity(5.0);
     $ionStormSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $ionStormSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $ionStormSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $ionStormSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $ionStormSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $ionStormSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $ionStormSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $ionStormSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $ionStormSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $ionStormSpecs->getMinSpecs()->setGravity(0.5);
     $ionStormSpecs->getMinSpecs()->setLivingConditions(0.5);
     $ionStormSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_ION_STORM);
     $ionStormSpecs->setUniverse($universeEntity);
     $this->em->persist($ionStormSpecs);
     $spatialDistortionSpecs = new CelestialBodyTypeSpecsEntity();
     $spatialDistortionSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $spatialDistortionSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $spatialDistortionSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $spatialDistortionSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $spatialDistortionSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $spatialDistortionSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $spatialDistortionSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $spatialDistortionSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $spatialDistortionSpecs->getMaxSpecs()->setGravity(5.0);
     $spatialDistortionSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $spatialDistortionSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $spatialDistortionSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $spatialDistortionSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $spatialDistortionSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $spatialDistortionSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $spatialDistortionSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $spatialDistortionSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $spatialDistortionSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $spatialDistortionSpecs->getMinSpecs()->setGravity(0.5);
     $spatialDistortionSpecs->getMinSpecs()->setLivingConditions(0.5);
     $spatialDistortionSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_SPATIAL_DISTORTION);
     $spatialDistortionSpecs->setUniverse($universeEntity);
     $this->em->persist($spatialDistortionSpecs);
     $terrestrialPlanetSpecs = new CelestialBodyTypeSpecsEntity();
     $terrestrialPlanetSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $terrestrialPlanetSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $terrestrialPlanetSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $terrestrialPlanetSpecs->getMaxSpecs()->setGravity(5.0);
     $terrestrialPlanetSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $terrestrialPlanetSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $terrestrialPlanetSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $terrestrialPlanetSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $terrestrialPlanetSpecs->getMinSpecs()->setGravity(0.5);
     $terrestrialPlanetSpecs->getMinSpecs()->setLivingConditions(0.5);
     $terrestrialPlanetSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_TERRESTRIAL_PLANET);
     $terrestrialPlanetSpecs->setUniverse($universeEntity);
     $this->em->persist($terrestrialPlanetSpecs);
     $voidSpecs = new CelestialBodyTypeSpecsEntity();
     $voidSpecs->getMaxSpecs()->getEffects()->setBuildingCost(1.0);
     $voidSpecs->getMaxSpecs()->getEffects()->setBuildingTime(1.0);
     $voidSpecs->getMaxSpecs()->getEffects()->setFleetScannerRange(1.0);
     $voidSpecs->getMaxSpecs()->getEffects()->setResearchPoints(1.0);
     $voidSpecs->getMaxSpecs()->getEffects()->setTaxes(1.0);
     $voidSpecs->getMaxSpecs()->getResourceDensity()->setChemicals(1.5);
     $voidSpecs->getMaxSpecs()->getResourceDensity()->setIce(1.5);
     $voidSpecs->getMaxSpecs()->getResourceDensity()->setIron(1.5);
     $voidSpecs->getMaxSpecs()->setGravity(5.0);
     $voidSpecs->getMaxSpecs()->setLivingConditions(2.0);
     $voidSpecs->getMinSpecs()->getEffects()->setBuildingCost(1.0);
     $voidSpecs->getMinSpecs()->getEffects()->setBuildingTime(1.0);
     $voidSpecs->getMinSpecs()->getEffects()->setFleetScannerRange(1.0);
     $voidSpecs->getMinSpecs()->getEffects()->setResearchPoints(1.0);
     $voidSpecs->getMinSpecs()->getEffects()->setTaxes(1.0);
     $voidSpecs->getMinSpecs()->getResourceDensity()->setChemicals(0.5);
     $voidSpecs->getMinSpecs()->getResourceDensity()->setIce(0.5);
     $voidSpecs->getMinSpecs()->getResourceDensity()->setIron(0.5);
     $voidSpecs->getMinSpecs()->setGravity(0.5);
     $voidSpecs->getMinSpecs()->setLivingConditions(0.5);
     $voidSpecs->setCelestialBodyType(CelestialBodyEntity::DISCR_VOID);
     $voidSpecs->setUniverse($universeEntity);
     $this->em->persist($voidSpecs);
     $this->em->flush();
     $this->universeEntity = $universeEntity;
 }
예제 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->clearDb();
     // Prepare a universe with
     // - 2 galaxies (0: chaos, 1: normal)
     // - chaos galaxy has 1 system with one free planet
     // - normal galaxy has 2 systems
     // -- 0: system with 1 free planet but a nebula
     // -- 1: system with 1 free planet and 1 planet with an outpost
     $universeEntity = new UniverseEntity();
     $universeEntity->setMaxCelestialBodies(2);
     $universeEntity->setMaxSystems(2);
     $universeEntity->setMinCelestialBodies(1);
     $universeEntity->setMinSystems(1);
     $this->em->persist($universeEntity);
     // --- chaos galaxy -------------------------------------------------------
     $g_0 = new GalaxyEntity();
     $g_0->setNumber(0);
     $g_0->setUniverse($universeEntity);
     $this->em->persist($g_0);
     $s_0_0 = new SystemEntity();
     $s_0_0->setGalaxy($g_0);
     $s_0_0->setNumber(0);
     $this->em->persist($s_0_0);
     $cb_0_0_0 = new AsteroidEntity();
     $cb_0_0_0->setNumber(0);
     $cb_0_0_0->setSystem($s_0_0);
     $this->em->persist($cb_0_0_0);
     // --- normal galaxy ------------------------------------------------------
     $g_1 = new GalaxyEntity();
     $g_1->setNumber(1);
     $g_1->setUniverse($universeEntity);
     $this->em->persist($g_1);
     // --- system with nebula -------------------------------------------------
     $redNebula = new SystemWideModifierEntity();
     $redNebula->setLabel('roter Nebel');
     $redNebula->setNebulaColor(hexdec('FF0000'));
     $this->em->persist($redNebula);
     $s_1_0 = new SystemEntity();
     $s_1_0->setGalaxy($g_1);
     $s_1_0->setModifier($redNebula);
     $s_1_0->setNumber(0);
     $this->em->persist($s_1_0);
     $cb_1_0_0 = new IceGiantEntity();
     $cb_1_0_0->setNumber(0);
     $cb_1_0_0->setSystem($s_1_0);
     $this->em->persist($cb_1_0_0);
     // --- system without nebula ----------------------------------------------
     $s_1_1 = new SystemEntity();
     $s_1_1->setGalaxy($g_1);
     $s_1_1->setNumber(1);
     $this->em->persist($s_1_1);
     $cb_1_1_0 = new VoidEntity();
     $cb_1_1_0->setNumber(0);
     $cb_1_1_0->setSystem($s_1_1);
     $this->em->persist($cb_1_1_0);
     $cb_1_1_1 = new TerrestrialPlanetEntity();
     $cb_1_1_1->setNumber(1);
     $cb_1_1_1->setSystem($s_1_1);
     $this->em->persist($cb_1_1_1);
     $user = new UserEntity();
     $user->setName('Someone');
     $this->em->persist($user);
     $outpostEntity = new OutpostEntity();
     $outpostEntity->setCelestialBody($cb_1_1_1);
     $outpostEntity->setName("Someone's outpost");
     $outpostEntity->setOwner($user);
     $this->em->persist($outpostEntity);
     $this->em->flush();
     // $cb_1_1_0 is the only celestial body suitable for a new player.
     // all other celestial bodies are in a chaos galaxy, in a system with
     // nebula, or have an outpost
     $this->celestialBodyForNewPlayer = $cb_1_1_0;
     $this->repo = $this->em->getRepository(CelestialBodyEntity::class);
     /* @var $configBuilder \Codeception\Specify\ConfigBuilder */
     $configBuilder = $this->specifyConfig();
     $configBuilder->shallowClone();
 }