mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user