Build/Test Tools: Fix and standardise calls to the setUp() and setUpBeforeClass() methods in the test suite.

The parent methods should always be called before any test-specific functionality is set up, unless there is a specific and documented reason.

See #52625


git-svn-id: https://develop.svn.wordpress.org/trunk@50449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2021-02-27 16:54:52 +00:00
parent 22e72cbdf2
commit 3542c3b4c0
21 changed files with 21 additions and 52 deletions
-4
View File
@@ -13,10 +13,6 @@ class Tests_Comment_Query extends WP_UnitTestCase {
self::$post_id = $factory->post->create();
}
function setUp() {
parent::setUp();
}
public function test_query() {
$c1 = self::factory()->comment->create(
array(