X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FKernel%2FCondition%2FUserRoleConditionTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FKernel%2FCondition%2FUserRoleConditionTest.php;h=d6923faf976294446f43bedecce1f244e8da1d8f;hp=075b04c5e0e2fcf3ba1c2a2f98279d3d10e68f32;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php b/web/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php index 075b04c5e..d6923faf9 100644 --- a/web/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php +++ b/web/core/modules/user/tests/src/Kernel/Condition/UserRoleConditionTest.php @@ -2,7 +2,7 @@ namespace Drupal\Tests\user\Kernel\Condition; -use Drupal\Component\Utility\SafeMarkup; +use Drupal\Component\Render\FormattableMarkup; use Drupal\KernelTests\KernelTestBase; use Drupal\user\Entity\Role; use Drupal\user\Entity\User; @@ -151,7 +151,7 @@ class UserRoleConditionTest extends KernelTestBase { $condition->setConfig('roles', [$this->role->id() => $this->role->id()]); $condition->setConfig('negate', FALSE); $this->assertTrue($condition->execute(), 'Authenticated user is a member of the custom role.'); - $this->assertEqual($condition->summary(), SafeMarkup::format('The user is a member of @roles', ['@roles' => $this->role->label()])); + $this->assertEqual($condition->summary(), new FormattableMarkup('The user is a member of @roles', ['@roles' => $this->role->label()])); } }