/** * @test */ public function I_can_register_all_enums_at_once() { PersonBackgroundEnumRegistrar::registerAll(); self::assertTrue(Type::hasType(BackgroundPointsType::BACKGROUND_POINTS)); self::assertTrue(Type::hasType(BackgroundSkillPointsType::BACKGROUND_SKILL_POINTS)); self::assertTrue(Type::hasType(BelongingsValueType::BELONGINGS_VALUE)); self::assertTrue(Type::hasType(HeritageType::HERITAGE)); }
public static function registerAll() { RacesEnumRegistrar::registerAll(); GendersEnumRegistrar::registerAll(); PropertiesEnumRegistrar::registerAll(); PersonBackgroundEnumRegistrar::registerAll(); GamingSessionEnumRegistrar::registerAll(); ProfessionsEnumRegistrar::registerAll(); ProfessionLevelsEnumRegistrar::registerAll(); ExceptionalitiesEnumRegistrar::registerAll(); StaminaEnumsRegistrar::registerAll(); HealthEnumsRegistrar::registerAll(); NameType::registerSelf(); }
public static function registerAll() { PersonBackgroundEnumRegistrar::registerAll(); ProfessionLevelsEnumRegistrar::registerAll(); DateTimeImmutableType::registerSelf(); }
protected function setUp() { PersonBackgroundEnumRegistrar::registerAll(); parent::setUp(); }