Skip to content
Snippets Groups Projects
Commit c4281e42 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2539300 by cilefen, tim.plunkett: Remove SafeMarkup::set in...

Issue #2539300 by cilefen, tim.plunkett: Remove SafeMarkup::set in \Drupal\Tests\Core\Form\FormCacheTest::testSetCacheWithSafeStrings()
parent 42c26e21
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -427,6 +427,8 @@ public function testSetCacheAuthUser() {
* @covers ::setCache
*/
public function testSetCacheWithSafeStrings() {
// A call to SafeMarkup::set() is appropriate in this test as a way to add a
// string to the safe list in the simplest way possible. Normally, avoid it.
SafeMarkup::set('a_safe_string');
$form_build_id = 'the_form_build_id';
$form = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment