Skip to content
Snippets Groups Projects
Commit 2802ecb8 authored by catch's avatar catch
Browse files

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
No related branches found
No related tags found
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
......@@ -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]';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment