Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / config / tests / src / Functional / ConfigExportImportUITest.php
index 96a80a606fff4849fb9620088157d7c61ec7156e..cbabffb03ab075524f887b33c1035ac9f9f9c30a 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Tests\config\Functional;
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Archiver\ArchiveTar;
 use Drupal\field\Entity\FieldConfig;
 use Drupal\field\Entity\FieldStorageConfig;
@@ -102,7 +101,7 @@ class ConfigExportImportUITest extends BrowserTestBase {
     $this->contentType = $this->drupalCreateContentType();
 
     // Create a field.
-    $this->fieldName = Unicode::strtolower($this->randomMachineName());
+    $this->fieldName = mb_strtolower($this->randomMachineName());
     $this->fieldStorage = FieldStorageConfig::create([
       'field_name' => $this->fieldName,
       'entity_type' => 'node',
@@ -135,7 +134,7 @@ class ConfigExportImportUITest extends BrowserTestBase {
 
     // Export the configuration.
     $this->drupalPostForm('admin/config/development/configuration/full/export', [], 'Export');
-    $this->tarball = $this->getRawContent();
+    $this->tarball = $this->getSession()->getPage()->getContent();
 
     $this->config('system.site')
       ->set('slogan', $this->originalSlogan)
@@ -225,7 +224,7 @@ class ConfigExportImportUITest extends BrowserTestBase {
 
     // Export the configuration.
     $this->drupalPostForm('admin/config/development/configuration/full/export', [], 'Export');
-    $this->tarball = $this->getRawContent();
+    $this->tarball = $this->getSession()->getPage()->getContent();
     $filename = file_directory_temp() . '/' . $this->randomMachineName();
     file_put_contents($filename, $this->tarball);