Skip to:
Content

bbPress.org

Changeset 6286


Ignore:
Timestamp:
02/06/2017 09:51:42 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Tools: Update file paths for tools unit tests.

Props thebrandonallen. Fixes #3056.

Location:
trunk/tests/phpunit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r5946 r6286  
    1414
    1515// Pull in the WordPress core test suite
    16 require_once( $config_file_path );
    17 require_once( $tests_dir_path . '/includes/functions.php' );
     16require_once $config_file_path;
     17require_once $tests_dir_path . '/includes/functions.php';
    1818
    1919/**
     
    3939// Include WordPress
    4040echo "Loading WordPress via `wp-settings.php`...\n";
    41 require_once( ABSPATH . '/wp-settings.php' );
     41require_once ABSPATH . '/wp-settings.php';
    4242
    4343// Fix fussy database settings
  • trunk/tests/phpunit/testcases/admin/tools.php

    r6194 r6286  
    1414        $this->set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );
    1515        $this->keymaster_id = get_current_user_id();
     16
    1617        bbp_set_user_role( $this->keymaster_id, bbp_get_keymaster_role() );
    1718
    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';
    2022        }
    2123    }
Note: See TracChangeset for help on using the changeset viewer.