Build/Test Tools: Declare two TestCase classes as abstract.

TestCases which are intended to be extended and not run directly, should be `abstract`.

Follow-up to [763/tests], [30277].

Props jrf.
See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51585 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-08-09 14:51:05 +00:00
parent 9e07a480c5
commit 385025b0ba
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
<?php
class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
abstract class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
public static $old_current_user;
public static $author_id;
public static $post_ids = array();

View File

@@ -3,7 +3,7 @@ require_once ABSPATH . 'wp-admin/includes/admin.php';
require_once ABSPATH . WPINC . '/class-IXR.php';
require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
abstract class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
protected $myxmlrpcserver;
function set_up() {