Changeset 6286
- Timestamp:
- 02/06/2017 09:51:42 PM (9 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
-
includes/install.php (modified) (2 diffs)
-
testcases/admin/tools.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/install.php
r5946 r6286 14 14 15 15 // Pull in the WordPress core test suite 16 require_once ( $config_file_path );17 require_once ( $tests_dir_path . '/includes/functions.php' );16 require_once $config_file_path; 17 require_once $tests_dir_path . '/includes/functions.php'; 18 18 19 19 /** … … 39 39 // Include WordPress 40 40 echo "Loading WordPress via `wp-settings.php`...\n"; 41 require_once ( ABSPATH . '/wp-settings.php' );41 require_once ABSPATH . '/wp-settings.php'; 42 42 43 43 // Fix fussy database settings -
trunk/tests/phpunit/testcases/admin/tools.php
r6194 r6286 14 14 $this->set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) ); 15 15 $this->keymaster_id = get_current_user_id(); 16 16 17 bbp_set_user_role( $this->keymaster_id, bbp_get_keymaster_role() ); 17 18 18 if ( ! function_exists( 'bbp_admin_repair' ) ) { 19 require_once( BBP_PLUGIN_DIR . 'includes/admin/tools.php' ); 19 if ( ! function_exists( 'bbp_admin_repair_page' ) ) { 20 require_once BBP_PLUGIN_DIR . 'includes/admin/tools/repair.php'; 21 require_once BBP_PLUGIN_DIR . 'includes/admin/tools/upgrades.php'; 20 22 } 21 23 }
Note: See TracChangeset
for help on using the changeset viewer.