From 620008d46ad228549e5860b9684d7f5d51d274f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demarle?= Date: Thu, 13 Sep 2018 13:35:22 +0200 Subject: [PATCH] setUpBeforeClass must always call its parent --- tests/framework/class-wc-unit-test-case.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/framework/class-wc-unit-test-case.php b/tests/framework/class-wc-unit-test-case.php index a0893a5ff2e..3d00a398649 100644 --- a/tests/framework/class-wc-unit-test-case.php +++ b/tests/framework/class-wc-unit-test-case.php @@ -50,6 +50,8 @@ class WC_Unit_Test_Case extends WP_HTTP_TestCase { * @since 3.5.0 */ public static function setUpBeforeClass() { + parent::setUpBeforeClass(); + // Terms are deleted in WP_UnitTestCase::tearDownAfterClass, then e.g. Uncategorized product_cat is missing. WC_Install::create_terms(); }