X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FUnit%2FSharedTempStoreTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Ftests%2Fsrc%2FUnit%2FSharedTempStoreTest.php;h=6b5d4419681b7f8e677bfddbe42a4a6b53862c47;hp=33bde413e2509c1de4d2bbffcd97107f26e20812;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/user/tests/src/Unit/SharedTempStoreTest.php b/web/core/modules/user/tests/src/Unit/SharedTempStoreTest.php index 33bde413e..6b5d44196 100644 --- a/web/core/modules/user/tests/src/Unit/SharedTempStoreTest.php +++ b/web/core/modules/user/tests/src/Unit/SharedTempStoreTest.php @@ -11,6 +11,9 @@ use Symfony\Component\HttpFoundation\RequestStack; /** * @coversDefaultClass \Drupal\user\SharedTempStore * @group user + * @group legacy + * @runTestsInSeparateProcesses + * @preserveGlobalState disabled */ class SharedTempStoreTest extends UnitTestCase { @@ -90,6 +93,7 @@ class SharedTempStoreTest extends UnitTestCase { /** * @covers ::get + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testGet() { $this->keyValue->expects($this->at(0)) @@ -109,6 +113,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the getIfOwner() method. * * @covers ::getIfOwner + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testGetIfOwner() { $this->keyValue->expects($this->at(0)) @@ -133,6 +138,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the set() method with no lock available. * * @covers ::set + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetWithNoLockAvailable() { $this->lock->expects($this->at(0)) @@ -158,6 +164,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests a successful set() call. * * @covers ::set + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSet() { $this->lock->expects($this->once()) @@ -181,6 +188,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the setIfNotExists() methods. * * @covers ::setIfNotExists + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetIfNotExists() { $this->keyValue->expects($this->once()) @@ -195,6 +203,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the setIfOwner() method when no key exists. * * @covers ::setIfOwner + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetIfOwnerWhenNotExists() { $this->keyValue->expects($this->once()) @@ -208,6 +217,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the setIfOwner() method when a key already exists but no object. * * @covers ::setIfOwner + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetIfOwnerNoObject() { $this->keyValue->expects($this->once()) @@ -226,6 +236,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the setIfOwner() method with matching and non matching owners. * * @covers ::setIfOwner + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testSetIfOwner() { $this->lock->expects($this->once()) @@ -250,6 +261,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the getMetadata() method. * * @covers ::getMetadata + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testGetMetadata() { $this->keyValue->expects($this->at(0)) @@ -274,6 +286,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the delete() method. * * @covers ::delete + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDelete() { $this->lock->expects($this->once()) @@ -297,6 +310,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the delete() method with no lock available. * * @covers ::delete + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDeleteWithNoLockAvailable() { $this->lock->expects($this->at(0)) @@ -322,6 +336,7 @@ class SharedTempStoreTest extends UnitTestCase { * Tests the deleteIfOwner() method. * * @covers ::deleteIfOwner + * @expectedDeprecation \Drupal\user\SharedTempStore is scheduled for removal in Drupal 9.0.0. Use \Drupal\Core\TempStore\SharedTempStore instead. See https://www.drupal.org/node/2935639. */ public function testDeleteIfOwner() { $this->lock->expects($this->once())