diff --git a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php index a439581500..f19f32f834 100644 --- a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php +++ b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageReadOnlyTest.php @@ -80,9 +80,9 @@ public function testReadOnly() { /** * @covers ::writeable * @group legacy - * @expectDeprecation writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. No replacement. See https://www.drupal.org/node/3155413 */ public function testWritable() { + $this->expectDeprecation('writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. No replacement. See https://www.drupal.org/node/3155413'); $php_read = new FileReadOnlyStorage($this->readonlyStorage); $this->assertFalse($php_read->writeable()); } diff --git a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php index a0558299fd..bf3f4c442f 100644 --- a/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php +++ b/core/tests/Drupal/Tests/Component/PhpStorage/FileStorageTest.php @@ -51,9 +51,9 @@ public function testCRUD() { /** * @covers ::writeable * @group legacy - * @expectDeprecation writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. No replacement. See https://www.drupal.org/node/3155413 */ public function testWritable() { + $this->expectDeprecation('writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. No replacement. See https://www.drupal.org/node/3155413'); $php = new FileStorage($this->standardSettings); $this->assertTrue($php->writeable()); }