Changeset 42741
- Timestamp:
- 02/25/2018 06:06:49 PM (7 years ago)
- Location:
- trunk/tests/phpunit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r42724 r42741 37 37 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); 38 38 define( 'DIR_TESTDATA', dirname( __FILE__ ) . '/../data' ); 39 define( 'DIR_TESTROOT', realpath( dirname( dirname( __FILE__ ) ) ) ); 39 40 40 41 define( 'WP_LANG_DIR', DIR_TESTDATA . '/languages' ); -
trunk/tests/phpunit/tests/rest-api/rest-schema-setup.php
r42724 r42741 396 396 if ( ! is_multisite() && version_compare( PHP_VERSION, '5.4', '>=' ) ) { 397 397 // Save the route object for QUnit tests. 398 $file = './tests/qunit/fixtures/wp-api-generated.js';398 $file = dirname( DIR_TESTROOT ) . '/qunit/fixtures/wp-api-generated.js'; 399 399 file_put_contents( $file, $mocked_responses ); 400 400 }
Note: See TracChangeset
for help on using the changeset viewer.