Merge pull request #21344 from Chouby/fix_testcase

setUpBeforeClass must always call its parent
This commit is contained in:
Claudiu Lodromanean 2018-09-14 10:53:04 -07:00 committed by GitHub
commit ea9aa8cd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}