diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php index 8988796452..b511bbeced 100644 --- a/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @@ -54,7 +54,7 @@ protected function setUp(): void { ->getMock(); $this->routeMatch = $this->createMock(RouteMatchInterface::class); - + $this->sessionConfiguration = $this->createMock(SessionConfigurationInterface::class); $this->accessCheck = new CsrfAccessCheck($this->csrfToken, $this->sessionConfiguration); } @@ -66,7 +66,7 @@ public function testAccessTokenPass() { $this->sessionConfiguration->expects($this->once()) ->method('hasSession') ->willReturn(TRUE); - + $this->csrfToken->expects($this->once()) ->method('validate') ->with('test_query', 'test-path/42') diff --git a/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php b/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php index 59eaa609e4..efc4b6f8d0 100644 --- a/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php +++ b/core/tests/Drupal/Tests/Core/Access/RouteProcessorCsrfTest.php @@ -41,7 +41,7 @@ class RouteProcessorCsrfTest extends UnitTestCase { /** * Sets up the necessary mocks. - */ + */ protected function setUp(): void { $this->csrfToken = $this->getMockBuilder(CsrfTokenGenerator::class) ->disableOriginalConstructor() @@ -56,7 +56,7 @@ protected function setUp(): void { ->method('getCurrentRequest') ->willReturn($this->createMock(Request::class)); - $this->processor = new RouteProcessorCsrf($this->csrfToken, $this->sessionConfiguration, $request_stack); + $this->processor = new RouteProcessorCsrf($this->csrfToken, $this->sessionConfiguration, $request_stack); } /**