Mercurial > hg > isophonics-drupal-site
diff core/modules/config/tests/src/Functional/ConfigEntityTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/config/tests/src/Functional/ConfigEntityTest.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/config/tests/src/Functional/ConfigEntityTest.php Thu Feb 28 13:21:36 2019 +0000 @@ -2,7 +2,7 @@ namespace Drupal\Tests\config\Functional; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Entity\EntityMalformedException; use Drupal\Core\Entity\EntityStorageException; use Drupal\Core\Config\Entity\ConfigEntityStorage; @@ -147,7 +147,7 @@ ]); try { $id_length_config_test->save(); - $this->pass(SafeMarkup::format("config_test entity with ID length @length was saved.", [ + $this->pass(new FormattableMarkup("config_test entity with ID length @length was saved.", [ '@length' => strlen($id_length_config_test->id()), ])); } @@ -161,7 +161,7 @@ ]); try { $id_length_config_test->save(); - $this->pass(SafeMarkup::format("config_test entity with ID length @length was saved.", [ + $this->pass(new FormattableMarkup("config_test entity with ID length @length was saved.", [ '@length' => strlen($id_length_config_test->id()), ])); } @@ -175,13 +175,13 @@ ]); try { $status = $id_length_config_test->save(); - $this->fail(SafeMarkup::format("config_test entity with ID length @length exceeding the maximum allowed length of @max saved successfully", [ + $this->fail(new FormattableMarkup("config_test entity with ID length @length exceeding the maximum allowed length of @max saved successfully", [ '@length' => strlen($id_length_config_test->id()), '@max' => static::MAX_ID_LENGTH, ])); } catch (ConfigEntityIdLengthException $e) { - $this->pass(SafeMarkup::format("config_test entity with ID length @length exceeding the maximum allowed length of @max failed to save", [ + $this->pass(new FormattableMarkup("config_test entity with ID length @length exceeding the maximum allowed length of @max failed to save", [ '@length' => strlen($id_length_config_test->id()), '@max' => static::MAX_ID_LENGTH, ]));