From 94441832c529cef36eb2c31f8f0a8b234f0a2f83 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 7 Jul 2019 13:54:17 +0100 Subject: [PATCH] Removed old translation endpoint tests --- tests/LanguageTest.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/tests/LanguageTest.php b/tests/LanguageTest.php index 91abadc91..d9b8655ee 100644 --- a/tests/LanguageTest.php +++ b/tests/LanguageTest.php @@ -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"'); - } - } \ No newline at end of file