Fix test compatibility with Drupal 10 and 11.
Revert PHPUnit attribute usage to annotations in order to support PHPUnit 9 which is still required by Drupal 10.
Revert PHPUnit attribute usage to annotations in order to support PHPUnit 9 which is still required by Drupal 10.