$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')), ['..', '.']);
$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