Removed old translation endpoint tests

This commit is contained in:
Dan Brown 2019-07-07 13:54:17 +01:00
parent f7f7cd464c
commit 94441832c5
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -41,21 +41,6 @@ class LanguageTest extends TestCase
$loginPageFrenchReq->assertDontSee('Se Connecter');
}
public function test_js_endpoint_for_each_language()
{
$visibleKeys = ['common', 'components', 'entities', 'errors'];
$this->asEditor();
foreach ($this->langs as $lang) {
setting()->putUser($this->getEditor(), 'language', $lang);
$transResp = $this->get('/translations');
foreach ($visibleKeys as $key) {
$transResp->assertSee($key);
}
}
}
public function test_all_lang_files_loadable()
{
$files = array_diff(scandir(resource_path('lang/en')), ['..', '.']);
@ -98,13 +83,4 @@ class LanguageTest extends TestCase
$this->assertNotEquals($enEmailActionHelp, $deInformalEmailActionHelp);
}
public function test_de_informal_falls_base_to_de_in_js_endpoint()
{
$this->asEditor();
setting()->putUser($this->getEditor(), 'language', 'de_informal');
$transResp = $this->get('/translations');
$transResp->assertSee('"cancel":"Abbrechen"');
}
}