X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Flanguage%2Ftests%2Fsrc%2FFunctional%2FLanguageSelectorTranslatableTest.php;fp=web%2Fcore%2Fmodules%2Flanguage%2Fsrc%2FTests%2FLanguageSelectorTranslatableTest.php;h=3d027c3fb5d882ec421d84fdd906c7082729a63a;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=d13626cc452c94ff352fad4cd32c6501bce11b70;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/language/src/Tests/LanguageSelectorTranslatableTest.php b/web/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php similarity index 88% rename from web/core/modules/language/src/Tests/LanguageSelectorTranslatableTest.php rename to web/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php index d13626cc4..3d027c3fb 100644 --- a/web/core/modules/language/src/Tests/LanguageSelectorTranslatableTest.php +++ b/web/core/modules/language/tests/src/Functional/LanguageSelectorTranslatableTest.php @@ -1,15 +1,15 @@ xpath('//select[@id=:id]//option[@value=:option]', [':id' => 'edit-settings-user-user-settings-language-langcode', ':option' => 'en']); // Check that the language text is translated. - $this->assertEqual((string) $elements[0], $name_translation, 'Checking the option string English is translated to Spanish.'); + $this->assertEqual($elements[0]->getText(), $name_translation, 'Checking the option string English is translated to Spanish.'); } }