Issue #3031577 by alexpott, Lendude, larowlan: \Drupal\Tests\Listeners\DeprecationListenerTrait::getSkippedDeprecations() does not work in unit tests