Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / config_translation / tests / src / Functional / ConfigTranslationUiThemeTest.php
similarity index 86%
rename from web/core/modules/config_translation/src/Tests/ConfigTranslationUiThemeTest.php
rename to web/core/modules/config_translation/tests/src/Functional/ConfigTranslationUiThemeTest.php
index 53713a92384703e13495405f3c7a2c493a9cbc25..dcfb7916fe850d1724e37e531d47b477097b679c 100644 (file)
@@ -1,16 +1,16 @@
 <?php
 
-namespace Drupal\config_translation\Tests;
+namespace Drupal\Tests\config_translation\Functional;
 
 use Drupal\language\Entity\ConfigurableLanguage;
-use Drupal\simpletest\WebTestBase;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Verifies theme configuration translation settings.
  *
  * @group config_translation
  */
-class ConfigTranslationUiThemeTest extends WebTestBase {
+class ConfigTranslationUiThemeTest extends BrowserTestBase {
 
   /**
    * Modules to enable.
@@ -65,7 +65,7 @@ class ConfigTranslationUiThemeTest extends WebTestBase {
       ':label' => 'Install and set as default',
       ':theme' => $theme,
     ]);
-    $this->drupalGet($GLOBALS['base_root'] . $elements[0]['href'], ['external' => TRUE]);
+    $this->drupalGet($GLOBALS['base_root'] . $elements[0]->getAttribute('href'), ['external' => TRUE]);
 
     $translation_base_url = 'admin/config/development/performance/translate';
     $this->drupalGet($translation_base_url);