Skip to content

Commit 385025b

Browse files
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
1 parent 9e07a48 commit 385025b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/phpunit/includes/testcase-canonical.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
3+
abstract class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
44
public static $old_current_user;
55
public static $author_id;
66
public static $post_ids = array();

tests/phpunit/includes/testcase-xmlrpc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_once ABSPATH . WPINC . '/class-IXR.php';
44
require_once ABSPATH . WPINC . '/class-wp-xmlrpc-server.php';
55

6-
class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
6+
abstract class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
77
protected $myxmlrpcserver;
88

99
function set_up() {

0 commit comments

Comments
 (0)