From 695102f3379a76f515aacabe3b15b0aa4d59843c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 10 Jun 2022 13:55:05 +1200 Subject: [PATCH] MNT Rename test class to conform with standard naming convention --- ...dlewareProcessTestBase.php => BaseMiddlewareProcessTest.php} | 2 +- tests/Middleware/CSRFMiddlewareTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/Middleware/{MiddlewareProcessTestBase.php => BaseMiddlewareProcessTest.php} (94%) diff --git a/tests/Middleware/MiddlewareProcessTestBase.php b/tests/Middleware/BaseMiddlewareProcessTest.php similarity index 94% rename from tests/Middleware/MiddlewareProcessTestBase.php rename to tests/Middleware/BaseMiddlewareProcessTest.php index d7ee42ef3..b89bc1180 100644 --- a/tests/Middleware/MiddlewareProcessTestBase.php +++ b/tests/Middleware/BaseMiddlewareProcessTest.php @@ -9,7 +9,7 @@ use SilverStripe\GraphQL\Middleware\QueryMiddleware; use SilverStripe\GraphQL\Schema\Schema as SchemaSchema; -abstract class MiddlewareProcessTestBase extends SapphireTest +abstract class BaseMiddlewareProcessTest extends SapphireTest { /** * @var callable diff --git a/tests/Middleware/CSRFMiddlewareTest.php b/tests/Middleware/CSRFMiddlewareTest.php index 4f758561a..b0349d7c3 100644 --- a/tests/Middleware/CSRFMiddlewareTest.php +++ b/tests/Middleware/CSRFMiddlewareTest.php @@ -6,7 +6,7 @@ use SilverStripe\GraphQL\Middleware\CSRFMiddleware; use SilverStripe\Security\SecurityToken; -class CSRFMiddlewareTest extends MiddlewareProcessTestBase +class CSRFMiddlewareTest extends BaseMiddlewareProcessTest { public function testItDoesntDoAnythingIfNotAMutation() {