added glass scale symptoms to translations
Some checks failed
PHPUnit / test (push) Has been cancelled
Some checks failed
PHPUnit / test (push) Has been cancelled
This commit is contained in:
@ -80,4 +80,25 @@ final class TranslationsWriteTest extends QdbTestCase
|
||||
}
|
||||
$this->assertSame('Oui', $fr);
|
||||
}
|
||||
|
||||
public function testAllTranslationsIncludeGlassSymptomKeys(): void
|
||||
{
|
||||
$token = $this->api()->loginWebAndGetToken(
|
||||
DatabaseSeeder::ADMIN_USERNAME,
|
||||
DatabaseSeeder::PASSWORD
|
||||
)['token'];
|
||||
$f = $this->fixture();
|
||||
|
||||
$res = $this->api()->withToken($token, 'GET', 'translations', null, ['all' => '1']);
|
||||
$this->assertApiOk($res);
|
||||
|
||||
$stringKeys = [];
|
||||
foreach ($res['data']['entries'] as $entry) {
|
||||
if (($entry['type'] ?? '') === 'string') {
|
||||
$stringKeys[] = $entry['key'] ?? '';
|
||||
}
|
||||
}
|
||||
$this->assertContains($f->glassSymptomKey, $stringKeys);
|
||||
$this->assertContains('fatigue', $stringKeys);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user