Migration1675323588ChangeEnglishLocaleTranslationOfUsLocale example

class Migration1675323588ChangeEnglishLocaleTranslationOfUsLocaleTest extends TestCase
{
    private Connection $connection;

    protected function setUp(): void
    {
        $this->connection = KernelLifecycleManager::getConnection();
    }

    public function testChangeLishLocalTranslationOfUsLocale(): void
    {
        $migration = new Migration1675323588ChangeEnglishLocaleTranslationOfUsLocale();
        $migration->update($this->connection);

        $enLangId = $this->fetchLanguageId('en-GB', $this->connection);

        if ($enLangId) {
            $locale = $this->fetchLocaleTranslation($enLangId, 'en-us', $this->connection);
            static::assertNotNull($locale);
            static::assertEquals('English (US)', $locale);
        }

        $deLangId = $this->fetchLanguageId('de-DE', $this->connection);

        
Home | Imprint | This part of the site doesn't use cookies.