diff --git a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
index 8b8c4bc..0650721 100644
--- a/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
+++ b/core/modules/editor/src/Tests/QuickEditIntegrationLoadingTest.php
@@ -85,7 +85,7 @@ public function testUsersWithoutPermission() {
$this->drupalGet('node/1');
// Ensure the text is transformed.
- $this->assertRaw('
Do you also love Drupal?
Druplicon');
+ $this->assertRaw('
Do you also love Drupal?
Druplicon');
// Retrieving the untransformed text should result in an empty 403 response.
$response = $this->drupalPost('editor/' . 'node/1/body/und/full', 'application/vnd.drupal-ajax', array());
@@ -104,7 +104,7 @@ public function testUserWithPermission() {
$this->drupalGet('node/1');
// Ensure the text is transformed.
- $this->assertRaw('
Do you also love Drupal?
Druplicon');
+ $this->assertRaw('
Do you also love Drupal?
Druplicon');
$response = $this->drupalPost('editor/' . 'node/1/body/und/full', 'application/vnd.drupal-ajax', array());
$this->assertResponse(200);
diff --git a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
index b7b4fc9..721fa34 100644
--- a/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
+++ b/core/modules/filter/src/Tests/FilterHtmlImageSecureTest.php
@@ -124,7 +124,7 @@ function testImageSource() {
$comment[] = $image . ':';
// Hash the image source in a custom test attribute, because it might
// contain characters that confuse XPath.
- $comment[] = '';
+ $input = '';
$expected = $input;
$this->assertIdentical($expected, $test($input)->getProcessedText());
// Data-align attribute: all 3 allowed values.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
// Data-align attribute: a disallowed value.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
// Empty data-align attribute.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
// Ensure the filter also works with uncommon yet valid attribute quoting.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
// Security test: attempt to inject an additional class.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
// Security test: attempt an XSS.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
}
@@ -117,27 +117,27 @@ function testCaptionFilter() {
$this->assertIdentical($expected, $test($input)->getProcessedText());
// Data-caption attribute.
- $input = '';
- $expected = 'Loquacious llama!';
+ $input = '';
+ $expected = 'Loquacious llama!';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
// Empty data-caption attribute.
- $input = '';
- $expected = '';
+ $input = '';
+ $expected = '';
$this->assertIdentical($expected, $test($input)->getProcessedText());
// HTML entities in the caption.
- $input = '';
- $expected = '“Loquacious llama!”';
+ $input = '';
+ $expected = '“Loquacious llama!”';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
// HTML encoded as HTML entities in data-caption attribute.
- $input = '';
- $expected = 'Loquacious llama!';
+ $input = '';
+ $expected = 'Loquacious llama!';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
@@ -145,28 +145,28 @@ function testCaptionFilter() {
// HTML (not encoded as HTML entities) in data-caption attribute, which is
// not allowed by the HTML spec, but may happen when people manually write
// HTML, so we explicitly support it.
- $input = '';
- $expected = 'Loquacious llama!';
+ $input = '';
+ $expected = 'Loquacious llama!';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
// Security test: attempt an XSS.
- $input = '';
- $expected = 'alert(\'Loquacious llama!\')';
+ $input = '';
+ $expected = 'alert(\'Loquacious llama!\')';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
// Ensure the filter also works with uncommon yet valid attribute quoting.
- $input = '';
- $expected = 'Loquacious llama!';
+ $input = '';
+ $expected = 'Loquacious llama!';
$output = $test($input);
$this->assertIdentical($expected, $output->getProcessedText());
$this->assertIdentical($attached_library, $output->getAssets());
// Finally, ensure that this also works on any other tag.
- $input = '