test(drupal): Fix phpcs, phpstan and Drupal 11 compatibility in tests

Closes #3589548

Merge request reports

Loading