diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfTokenManagerTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfTokenManagerTest.php index 8af8a5e..1be25cc 100644 --- a/core/tests/Drupal/Tests/Core/Access/CsrfTokenManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CsrfTokenManagerTest.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\Request; /** - * Tests the CSRF token manager.. + * Tests the CSRF token manager. */ class CsrfTokenManagerTest extends UnitTestCase { @@ -33,8 +33,7 @@ function setUp() { $uuid = new Uuid(); $this->key = $uuid->generate(); - $this->state = $this->getMockBuilder('Drupal\Core\KeyValueStore\KeyValueStoreInterface') - ->getMock(); + $this->state = $this->getMock('Drupal\Core\KeyValueStore\KeyValueStoreInterface'); $this->manager = new CsrfTokenManager($this->state, new Request()); $this->manager->setRequest(new Request());