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;
$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',
// 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)
// 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);