diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4dde59cea..beda319bf 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -104,6 +104,6 @@ function http_disable_request( $response, $args, $url ) { // Start up the WP testing environment. require $_tests_dir . '/includes/bootstrap.php'; require __DIR__ . '/class-activitypub-testcase-cache-http.php'; -require __DIR__ . '/class-rest-controller-testcase.php'; +require __DIR__ . '/class-test-rest-controller-testcase.php'; \Activitypub\Migration::add_default_settings(); diff --git a/tests/class-rest-controller-testcase.php b/tests/class-test-rest-controller-testcase.php similarity index 95% rename from tests/class-rest-controller-testcase.php rename to tests/class-test-rest-controller-testcase.php index 84ad99d3e..1a2922390 100644 --- a/tests/class-rest-controller-testcase.php +++ b/tests/class-test-rest-controller-testcase.php @@ -10,7 +10,7 @@ /** * REST Controller Testcase. */ -abstract class REST_Controller_Testcase extends \WP_Test_REST_TestCase { +abstract class Test_REST_Controller_Testcase extends \WP_Test_REST_TestCase { /** * The REST server. diff --git a/tests/includes/rest/class-test-webfinger-controller.php b/tests/includes/rest/class-test-webfinger-controller.php index 664e90f95..7fac1d22e 100644 --- a/tests/includes/rest/class-test-webfinger-controller.php +++ b/tests/includes/rest/class-test-webfinger-controller.php @@ -7,14 +7,12 @@ namespace Activitypub\Tests\Rest; -use Activitypub\Tests\REST_Controller_Testcase; - /** * Tests for WebFinger REST API endpoint. * * @coversDefaultClass \Activitypub\Rest\Webfinger_Controller */ -class Test_Webfinger_Controller extends REST_Controller_Testcase { +class Test_Webfinger_Controller extends \Activitypub\Tests\Test_REST_Controller_Testcase { /** * Test user.