X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FTests%2FLocaleFileSystemFormTest.php;fp=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FTests%2FLocaleFileSystemFormTest.php;h=0000000000000000000000000000000000000000;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=3ac296abe27c0484e177aa84d7d0e82be40b83b1;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php b/web/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php deleted file mode 100644 index 3ac296abe..000000000 --- a/web/core/modules/locale/src/Tests/LocaleFileSystemFormTest.php +++ /dev/null @@ -1,56 +0,0 @@ -drupalCreateUser(['administer site configuration']); - $this->drupalLogin($account); - } - - /** - * Tests translation directory settings on the file settings form. - */ - public function testFileConfigurationPage() { - // By default there should be no setting for the translation directory. - $this->drupalGet('admin/config/media/file-system'); - $this->assertNoFieldByName('translation_path'); - - // With locale module installed, the setting should appear. - $module_installer = $this->container->get('module_installer'); - $module_installer->install(['locale']); - $this->rebuildContainer(); - $this->drupalGet('admin/config/media/file-system'); - $this->assertFieldByName('translation_path'); - - // The setting should persist. - $translation_path = $this->publicFilesDirectory . '/translations_changed'; - $fields = [ - 'translation_path' => $translation_path - ]; - $this->drupalPostForm(NULL, $fields, t('Save configuration')); - $this->drupalGet('admin/config/media/file-system'); - $this->assertFieldByName('translation_path', $translation_path); - $this->assertEqual($translation_path, $this->config('locale.settings')->get('translation.path')); - } - -}