diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-31 20:05:06 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-31 20:05:06 +0000 |
commit | 6fc055ab906c035355bfb789aed404551db5b45a (patch) | |
tree | f29650c65f8a7003ce73ebc6047f216f91e14c79 /modules/translation | |
parent | e0871ec49bb81adff156d4bc7cf2d9f8b50d04a0 (diff) | |
download | brdo-6fc055ab906c035355bfb789aed404551db5b45a.tar.gz brdo-6fc055ab906c035355bfb789aed404551db5b45a.tar.bz2 |
- Patch #730220 by Berdir, aspilicious, Damien Tournoud, pwolanin: improved xpath tests.
Diffstat (limited to 'modules/translation')
-rw-r--r-- | modules/translation/translation.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/translation/translation.test b/modules/translation/translation.test index 0ef64c275..19b421df8 100644 --- a/modules/translation/translation.test +++ b/modules/translation/translation.test @@ -110,7 +110,7 @@ class TranslationTestCase extends DrupalWebTestCase { $this->assertRaw(t('The language %language has been created and can now be used. More information is available on the <a href="@locale-help">help screen</a>.', array('%language' => $languages[$language_code]->name, '@locale-help' => url('admin/help/locale'))), t('Language has been created.')); } } - elseif ($this->xpath('//input[@type=\'checkbox\' and @name=\'enabled[' . $language_code . ']\' and @checked=\'checked\']')) { + elseif ($this->xpath('//input[@type="checkbox" and @name=:name and @checked="checked"]', array(':name' => 'enabled[' . $language_code . ']'))) { // It's installed and enabled. No need to do anything. $this->assertTrue(true, 'Language [' . $language_code . '] already installed and enabled.'); } |