From 2f1b0d31a81bf7d7671199408a6b3577bd9159f9 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Fri, 23 Feb 2024 09:36:55 -0500 Subject: [PATCH] Migrating to testkit 1.0 and PSR-4 testing --- composer.json | 2 +- phpunit.xml | 24 +++++++++---------- ...est-api-guard.php => RestApiGuardTest.php} | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) rename tests/{test-rest-api-guard.php => RestApiGuardTest.php} (99%) diff --git a/composer.json b/composer.json index 630fdcb..71cdd63 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require-dev": { "alleyinteractive/alley-coding-standards": "^2.0", "alleyinteractive/composer-wordpress-autoloader": "^1.0", - "mantle-framework/testkit": "^0.12" + "mantle-framework/testkit": "^1.0" }, "config": { "allow-plugins": { diff --git a/phpunit.xml b/phpunit.xml index 0595632..80ad28a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,15 +1,15 @@ + - - - tests - - + + + tests + + diff --git a/tests/test-rest-api-guard.php b/tests/RestApiGuardTest.php similarity index 99% rename from tests/test-rest-api-guard.php rename to tests/RestApiGuardTest.php index 343a60d..2b523f0 100644 --- a/tests/test-rest-api-guard.php +++ b/tests/RestApiGuardTest.php @@ -10,7 +10,7 @@ /** * Visit {@see https://mantle.alley.co/testing/test-framework.html} to learn more. */ -class Test_REST_API_Guard extends Test_Case { +class RestApiGuardTest extends Test_Case { protected function setUp(): void { parent::setUp();