Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / locale / tests / src / Functional / LocaleConfigTranslationImportTest.php
similarity index 98%
rename from web/core/modules/locale/src/Tests/LocaleConfigTranslationImportTest.php
rename to web/core/modules/locale/tests/src/Functional/LocaleConfigTranslationImportTest.php
index 479a60046bf55fb50a6bbee19c7a1ea8d2dff154..67c2dfa7078eccc95fae18e1e22d848f6b70ea95 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
 <?php
 
-namespace Drupal\locale\Tests;
+namespace Drupal\Tests\locale\Functional;
 
 use Drupal\locale\Locale;
 
 use Drupal\locale\Locale;
-use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\BrowserTestBase;
 use Drupal\language\Entity\ConfigurableLanguage;
 
 /**
 use Drupal\language\Entity\ConfigurableLanguage;
 
 /**
@@ -11,7 +11,7 @@ use Drupal\language\Entity\ConfigurableLanguage;
  *
  * @group locale
  */
  *
  * @group locale
  */
-class LocaleConfigTranslationImportTest extends WebTestBase {
+class LocaleConfigTranslationImportTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
 
   /**
    * Modules to enable.
@@ -206,7 +206,7 @@ class LocaleConfigTranslationImportTest extends WebTestBase {
     $this->drupalPostForm('admin/config/regional/translate', $search, t('Filter'));
     $textareas = $this->xpath('//textarea');
     $textarea = current($textareas);
     $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 => '',
     ];
     $edit = [
       $lid => '',
     ];