Mercurial > hg > isophonics-drupal-site
diff core/tests/Drupal/Tests/SchemaCheckTestTrait.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/tests/Drupal/Tests/SchemaCheckTestTrait.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/tests/Drupal/Tests/SchemaCheckTestTrait.php Thu Feb 28 13:21:36 2019 +0000 @@ -4,7 +4,7 @@ use Drupal\Core\Config\TypedConfigManagerInterface; use Drupal\Core\Config\Schema\SchemaCheckTrait; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; /** * Provides a class for checking configuration schema. @@ -28,19 +28,19 @@ if ($errors === FALSE) { // @todo Since the use of this trait is under TestBase, it works. // Can be fixed as part of https://www.drupal.org/node/2260053. - $this->fail(SafeMarkup::format('No schema for @config_name', ['@config_name' => $config_name])); + $this->fail(new FormattableMarkup('No schema for @config_name', ['@config_name' => $config_name])); return; } elseif ($errors === TRUE) { // @todo Since the use of this trait is under TestBase, it works. // Can be fixed as part of https://www.drupal.org/node/2260053. - $this->pass(SafeMarkup::format('Schema found for @config_name and values comply with schema.', ['@config_name' => $config_name])); + $this->pass(new FormattableMarkup('Schema found for @config_name and values comply with schema.', ['@config_name' => $config_name])); } else { foreach ($errors as $key => $error) { // @todo Since the use of this trait is under TestBase, it works. // Can be fixed as part of https://www.drupal.org/node/2260053. - $this->fail(SafeMarkup::format('Schema key @key failed with: @error', ['@key' => $key, '@error' => $error])); + $this->fail(new FormattableMarkup('Schema key @key failed with: @error', ['@key' => $key, '@error' => $error])); } } }