Skip to content

Commit 0423790

Browse files
committed
Require dependencies when appropriate in some unit test files.
Previously, attempting to run certain test files in isolation would resultin fatal errors, as the parent classes had not been loaded. Props isaacchapman. Fixes #32984. git-svn-id: https://develop.svn.wordpress.org/trunk@33250 602fd350-edb4-49c9-b593-d223f7449a82
1 parent a48af6e commit 0423790

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

tests/phpunit/tests/filesystem/find_folder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/base.php';
4+
35
/**
46
* @group filesystem
57
* @group wp-filesystem

tests/phpunit/tests/image/editor.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/base.php';
4+
35
/**
46
* Test the WP_Image_Editor base class
57
* @group image

tests/phpunit/tests/import/import.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/base.php';
4+
35
/**
46
* @group import
57
*/

tests/phpunit/tests/import/parser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/base.php';
4+
35
/**
46
* @group import
57
*/

tests/phpunit/tests/import/postmeta.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
require_once dirname( __FILE__ ) . '/base.php';
4+
35
/**
46
* @group import
57
*/

tests/phpunit/tests/query/verboseRewriteRules.php

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

3-
require_once dirname( dirname( __FILE__ ) ) . '/query.php';
3+
require_once dirname( __FILE__ ) . '/conditionals.php';
44

55
/**
66
* @group query

0 commit comments

Comments
 (0)