Changeset 4601
- Timestamp:
- 12/30/2016 07:18:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-remote-css/tests/bootstrap.php
r2960 r4601 17 17 18 18 require_once( $core_tests_directory . '/includes/functions.php' ); 19 require_once( dirname( dirname( $core_tests_directory ) ) . '/src/wp-admin/includes/plugin.php' ); 19 20 20 21 /** … … 27 28 * Defining WP_ADMIN is so that wordcamp-remote-css/bootstrap.php will load the app/*.php files. 28 29 * It may need to be refactored if we add tests for output-cached-css.php. 29 * We shouldn't really be using PHPUnit for functional tests, though, so it'd be better to switch those tests30 * to Codeception or Behat.31 30 */ 32 31 define( 'WP_ADMIN', true ); 33 32 define( 'JETPACK_DEV_DEBUG', true ); 33 define( 'JETPACK__PLUGIN_DIR', dirname( dirname( __DIR__ ) ) . '/jetpack' ); 34 35 $jetpack_plugin_data = get_plugin_data( JETPACK__PLUGIN_DIR . '/jetpack.php', false ); 36 37 define( 'JETPACK__VERSION', $jetpack_plugin_data['Version'] ); 34 38 35 39 require_once( dirname( __DIR__ ) . '/bootstrap.php' ); 36 require_once( dirname( dirname( __DIR__ ) ) . '/jetpack/jetpack.php' );40 require_once( JETPACK__PLUGIN_DIR . '/modules/custom-css/custom-css-4.7.php' ); 37 41 38 42 // Some of the sanitization lives here because it runs for both Custom CSS and Remote CSS … … 42 46 43 47 require( $core_tests_directory . '/includes/bootstrap.php' ); 44 45 \Jetpack::activate_module( 'custom-css', false, false );
Note: See TracChangeset
for help on using the changeset viewer.