diff --git a/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/GarbageCollectionTest.php b/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/GarbageCollectionTest.php index 2835a47..3e20c99 100644 --- a/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/GarbageCollectionTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/KeyValueStore/GarbageCollectionTest.php @@ -9,6 +9,7 @@ use Drupal\Core\Database\Database; use Drupal\Core\KeyValueStore\DatabaseStorageExpirable; +use Drupal\Core\Serialization\PhpSerialize; use Drupal\simpletest\UnitTestBase; /** @@ -41,7 +42,7 @@ protected function tearDown() { */ public function testGarbageCollection() { $collection = $this->randomName(); - $store = new DatabaseStorageExpirable($collection, Database::getConnection()); + $store = new DatabaseStorageExpirable($collection, new PhpSerialize(), Database::getConnection()); // Insert some items and confirm that they're set. for ($i = 0; $i <= 3; $i++) { diff --git a/core/modules/user/lib/Drupal/user/Tests/TempStoreDatabaseTest.php b/core/modules/user/lib/Drupal/user/Tests/TempStoreDatabaseTest.php index 0437837..a2af2ba 100644 --- a/core/modules/user/lib/Drupal/user/Tests/TempStoreDatabaseTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/TempStoreDatabaseTest.php @@ -11,6 +11,7 @@ use Drupal\user\TempStoreFactory; use Drupal\Core\Lock\DatabaseLockBackend; use Drupal\Core\Database\Database; +use Drupal\Core\Serialization\PhpSerialize; /** * Tests the TempStore namespace. @@ -83,7 +84,7 @@ protected function tearDown() { */ public function testUserTempStore() { // Create a key/value collection. - $factory = new TempStoreFactory(Database::getConnection(), new DatabaseLockBackend(Database::getConnection())); + $factory = new TempStoreFactory(new PhpSerialize(), Database::getConnection(), new DatabaseLockBackend(Database::getConnection())); $collection = $this->randomName(); // Create two mock users.