Issue #2928645 by alexpott, Wim Leers, dawehner, Mile23: \Drupal\Tests\migrate\Kernel\Plugin\MigrationDirectoryTest uses @expectedDeprecationMessage