X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Ftests%2Fsrc%2FFunctional%2FLocaleConfigTranslationTest.php;fp=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FTests%2FLocaleConfigTranslationTest.php;h=4d1b9df2cd6bd70f71c976aa76152966a47715fb;hp=a90dce0c54c8ff3bc3b1c995a4bf3376a62d551c;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a diff --git a/web/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php b/web/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php similarity index 97% rename from web/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php rename to web/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php index a90dce0c5..4d1b9df2c 100644 --- a/web/core/modules/locale/src/Tests/LocaleConfigTranslationTest.php +++ b/web/core/modules/locale/tests/src/Functional/LocaleConfigTranslationTest.php @@ -1,8 +1,8 @@ drupalPostForm('admin/config/regional/translate', $search, t('Filter')); $textareas = $this->xpath('//textarea'); $textarea = current($textareas); - $lid = (string) $textarea[0]['name']; + $lid = $textarea->getAttribute('name'); $edit = [ $lid => $message, ]; @@ -100,7 +100,7 @@ class LocaleConfigTranslationTest extends WebTestBase { $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter')); $textareas = $this->xpath('//textarea'); $textarea = current($textareas); - $lid = (string) $textarea[0]['name']; + $lid = $textarea->getAttribute('name'); $edit = [ $lid => 'D', ]; @@ -143,7 +143,7 @@ class LocaleConfigTranslationTest extends WebTestBase { ]; $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter')); $textarea = current($this->xpath('//textarea')); - $lid = (string) $textarea[0]['name']; + $lid = $textarea->getAttribute('name'); $edit = [ $lid => $image_style_label, ]; @@ -175,7 +175,7 @@ class LocaleConfigTranslationTest extends WebTestBase { ]; $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter')); $textarea = current($this->xpath('//textarea')); - $lid = (string) $textarea[0]['name']; + $lid = $textarea->getAttribute('name'); $edit = [ $lid => $category_label, ];