diff -u b/core/modules/user/tests/src/Unit/SharedTempStoreTest.php b/core/modules/user/tests/src/Unit/SharedTempStoreTest.php --- b/core/modules/user/tests/src/Unit/SharedTempStoreTest.php +++ b/core/modules/user/tests/src/Unit/SharedTempStoreTest.php @@ -78,10 +78,10 @@ $this->lock = $this->createMock('Drupal\Core\Lock\LockBackendInterface'); $this->requestStack = new RequestStack(); $request = Request::createFromGlobals(); - $session = $this->getMock(SessionInterface::class); + $session = $this->createMock(SessionInterface::class); $request->setSession($session); $this->requestStack->push($request); - $current_user = $this->getMock(AccountProxyInterface::class); + $current_user = $this->createMock(AccountProxyInterface::class); $this->tempStore = new SharedTempStore($this->keyValue, $this->lock, $this->owner, $this->requestStack, $current_user, 604800); diff -u b/core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php b/core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php --- b/core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php +++ b/core/tests/Drupal/Tests/Core/TempStore/SharedTempStoreTest.php @@ -78,10 +78,10 @@ $this->lock = $this->createMock('Drupal\Core\Lock\LockBackendInterface'); $this->requestStack = new RequestStack(); $request = Request::createFromGlobals(); - $session = $this->getMock(SessionInterface::class); + $session = $this->createMock(SessionInterface::class); $request->setSession($session); $this->requestStack->push($request); - $current_user = $this->getMock(AccountProxyInterface::class); + $current_user = $this->createMock(AccountProxyInterface::class); $this->tempStore = new SharedTempStore($this->keyValue, $this->lock, $this->owner, $this->requestStack, $current_user, 604800);