fehlende Nachrichtenübersetzungen für die erfolgreiche E-Mail-Verifikation ergänzt
This commit is contained in:
25
tests/Feature/AuthVerificationTranslationsTest.php
Normal file
25
tests/Feature/AuthVerificationTranslationsTest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Tests\TestCase;
|
||||
|
||||
class AuthVerificationTranslationsTest extends TestCase
|
||||
{
|
||||
public function test_auth_verification_translations_exist_in_de_and_en(): void
|
||||
{
|
||||
$this->assertTranslationExists('de', 'auth.verification.success_title');
|
||||
$this->assertTranslationExists('de', 'auth.verification.checkout_success_message');
|
||||
$this->assertTranslationExists('en', 'auth.verification.success_title');
|
||||
$this->assertTranslationExists('en', 'auth.verification.checkout_success_message');
|
||||
}
|
||||
|
||||
private function assertTranslationExists(string $locale, string $key): void
|
||||
{
|
||||
app()->setLocale($locale);
|
||||
|
||||
$translation = __($key);
|
||||
|
||||
$this->assertNotSame($key, $translation);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user