diff --git a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php index f19f32f834..e8f5197a56 100644 --- a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php +++ b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php @@ -5,6 +5,7 @@ use Drupal\Component\PhpStorage\FileStorage; use Drupal\Component\PhpStorage\FileReadOnlyStorage; use Drupal\Component\Utility\Random; +use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; /** * @coversDefaultClass \Drupal\Component\PhpStorage\FileReadOnlyStorage @@ -14,6 +15,8 @@ */ class FileStorageReadOnlyTest extends PhpStorageTestBase { + use ExpectDeprecationTrait; + /** * Standard test settings to pass to storage instances. * diff --git a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php index bf3f4c442f..bfad89b69b 100644 --- a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php +++ b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php @@ -6,6 +6,7 @@ use Drupal\Component\Utility\Random; use Drupal\Tests\Traits\PhpUnitWarnings; use org\bovigo\vfs\vfsStreamDirectory; +use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; /** * @coversDefaultClass \Drupal\Component\PhpStorage\FileStorage @@ -14,7 +15,7 @@ */ class FileStorageTest extends PhpStorageTestBase { - use PhpUnitWarnings; + use PhpUnitWarnings, ExpectDeprecationTrait; /** * Standard test settings to pass to storage instances.