X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FUnit%2FPrivateTempStoreTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FUnit%2FPrivateTempStoreTest.php;h=be9376ad1dc1c4f2582340b49097dceb06d177ad;hp=8d188114ccde129540c430c4fcace2f6c9d3c8e1;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php b/web/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php index 8d188114c..be9376ad1 100644 --- a/web/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php +++ b/web/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php @@ -11,6 +11,9 @@ use Symfony\Component\HttpFoundation\RequestStack; /** * @coversDefaultClass \Drupal\user\PrivateTempStore * @group user + * @group legacy + * @runTestsInSeparateProcesses + * @preserveGlobalState disabled */ class PrivateTempStoreTest extends UnitTestCase { @@ -98,6 +101,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the get() method. * * @covers ::get + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testGet() { $this->keyValue->expects($this->at(0)) @@ -122,6 +126,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the set() method with no lock available. * * @covers ::set + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetWithNoLockAvailable() { $this->lock->expects($this->at(0)) @@ -147,6 +152,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests a successful set() call. * * @covers ::set + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSet() { $this->lock->expects($this->once()) @@ -170,6 +176,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the getMetadata() method. * * @covers ::getMetadata + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testGetMetadata() { $this->keyValue->expects($this->at(0)) @@ -194,6 +201,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the locking in the delete() method. * * @covers ::delete + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDeleteLocking() { $this->keyValue->expects($this->once()) @@ -221,6 +229,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the delete() method with no lock available. * * @covers ::delete + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDeleteWithNoLockAvailable() { $this->keyValue->expects($this->once()) @@ -250,6 +259,7 @@ class PrivateTempStoreTest extends UnitTestCase { * Tests the delete() method. * * @covers ::delete + * @expectedDeprecation \Drupal\user\PrivateTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\PrivateTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDelete() { $this->lock->expects($this->once())