From 9594553dee541a7aa1a2363420e3fcb1e586c6ca Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Sat, 15 Aug 2015 13:52:33 -0500 Subject: [PATCH] Issue #2550963 by kgoel, akalata, josephdpurcell, justAChris: Remove or document SafeMarkup::set in ShortcutSetsTest::testShortcutSetSwitchNoSetName --- core/modules/shortcut/src/Tests/ShortcutSetsTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php index 75112058f560..9334ea187c0e 100644 --- a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php @@ -7,7 +7,6 @@ namespace Drupal\shortcut\Tests; -use Drupal\Component\Utility\SafeMarkup; use Drupal\shortcut\Entity\ShortcutSet; /** @@ -133,9 +132,7 @@ function testShortcutSetSwitchCreate() { function testShortcutSetSwitchNoSetName() { $edit = array('set' => 'new'); $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set')); - $this->assertRaw(\Drupal::translation()->formatPlural(1, '1 error has been found: !errors', '@count errors have been found: !errors', [ - '!errors' => SafeMarkup::set('<a href="#edit-label">Label</a>') - ])); + $this->assertRaw('1 error has been found: <a href="#edit-label">Label</a>'); $current_set = shortcut_current_displayed_set($this->adminUser); $this->assertEqual($current_set->id(), $this->set->id(), 'Attempting to switch to a new shortcut set without providing a set name does not succeed.'); $this->assertFieldByXPath("//input[@name='label' and contains(concat(' ', normalize-space(@class), ' '), ' error ')]", NULL, 'The new set label field has the error class'); -- GitLab