diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php index ea52485..8c2e5bf 100644 --- a/core/modules/config/src/Tests/ConfigImportUITest.php +++ b/core/modules/config/src/Tests/ConfigImportUITest.php @@ -302,14 +302,14 @@ function testImportDiff() { // changed. // Changed values are escaped. - $this->assertText(Html::escape('

foobar

')); - $this->assertText(Html::escape('

foobar

')); + $this->assertText(Html::escape("foo: '

foobar

'")); + $this->assertText(Html::escape("foo: '

foobar

'")); // The no change values are escaped. - $this->assertText(Html::escape('no change')); + $this->assertText(Html::escape("baz: 'no change'")); // Added value is escaped. - $this->assertText(Html::escape('bangpow')); + $this->assertText(Html::escape("biff: 'bangpow'")); // Deleted value is escaped. - $this->assertText(Html::escape('herp')); + $this->assertText(Html::escape("404: 'herp'")); // Reset data back to original, and remove a key $staging_data = $original_data; @@ -319,10 +319,10 @@ function testImportDiff() { // Load the diff UI and verify that the diff reflects a removed key. $this->drupalGet('admin/config/development/configuration/sync/diff/' . $config_name); // The no change values are escaped. - $this->assertText(Html::escape('

foobar

')); - $this->assertText(Html::escape('no change')); + $this->assertText(Html::escape("foo: '

foobar

'")); + $this->assertText(Html::escape("baz: 'no change'")); // Removed key is escaped. - $this->assertText(Html::escape('herp')); + $this->assertText(Html::escape("404: 'herp'")); // Reset data back to original and add a key $staging_data = $original_data; @@ -332,10 +332,10 @@ function testImportDiff() { // Load the diff UI and verify that the diff reflects an added key. $this->drupalGet('admin/config/development/configuration/sync/diff/' . $config_name); // The no change values are escaped. - $this->assertText(Html::escape('

foobar

')); - $this->assertText(Html::escape('no change')); + $this->assertText(Html::escape("baz: 'no change'")); + $this->assertText(Html::escape("404: 'herp'")); // Added key is escaped. - $this->assertText(Html::escape('bangpow')); + $this->assertText(Html::escape("biff: 'bangpow'")); } /**