Commit 2802ecb8 authored by catch's avatar catch

Issue #2080347 by mrsinguyen: Remove Unused local variable $result from...

Issue #2080347 by mrsinguyen: Remove Unused local variable $result from /core/modules/system/lib/Drupal/system/Tests/System/TokenReplaceTest.php.
parent 82ceeb95
......@@ -51,7 +51,7 @@ function testTokenReplacement() {
// Test that the clear parameter cleans out non-existent tokens.
$result = $token_service->replace($source, array('node' => $node), array('langcode' => $language_interface->id, 'clear' => TRUE));
$result = $this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens cleared out.');
$this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens cleared out.');
// Test without using the clear parameter (non-existent token untouched).
$target .= '[user:name]';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment