Skip to content

Commit

Permalink
EWPP-3512: Output changes when executing in Drupal 9 and 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
brummbar committed Jul 28, 2023
1 parent 6542b62 commit 7c8b611
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public function testEuLoginUsersDataSanitization() {
]);

$this->drush('sql:sanitize');
$expected = 'The following operations will be performed:' . PHP_EOL . PHP_EOL;
$expected = 'The following operations will be performed:' . PHP_EOL;
// An extra newline is added when the command is executed with Drupal 9.x.
// @todo Remove when support for Drupal 9.x is dropped.
$expected .= version_compare(\Drupal::VERSION, '10.0.0', '<') ? PHP_EOL : '';
$expected .= '* Truncate sessions table.' . PHP_EOL;
$expected .= '* Sanitize text fields associated with users.' . PHP_EOL;
$expected .= '* Sanitize user passwords.' . PHP_EOL;
Expand Down

0 comments on commit 7c8b611

Please sign in to comment.