jaroslavtyc/drd-plus-codes

View on GitHub
tests/Codes/RaceCodeTest.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace DrdPlus\Tests\Codes;

use DrdPlus\Codes\RaceCode;
use DrdPlus\Codes\SubRaceCode;
use DrdPlus\Tests\Codes\Partials\TranslatableCodeTest;

class RaceCodeTest extends TranslatableCodeTest
{
    /**
     * @test
     */
    public function I_can_get_default_sub_race()
    {
        $raceCode = RaceCode::getIt(RaceCode::HOBBIT);
        self::assertSame(SubRaceCode::getDefaultSubRaceFor($raceCode), $raceCode->getDefaultSubRaceCode());
    }
}