[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Bootstraps unit-tests. 4 * 5 * @package GlotPress 6 * @subpackage Tests 7 */ 8 9 require __DIR__ . '/includes/constants.php'; 10 require_once dirname( dirname( __DIR__ ) ) . '/vendor/autoload.php'; 11 12 require_once WP_TESTS_DIR . '/includes/functions.php'; 13 14 /** 15 * Load GlotPress. 16 */ 17 function _manually_load_plugin() { 18 require GP_TESTS_DIR . '/includes/loader.php'; 19 } 20 tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); 21 22 global $wp_tests_options; 23 $wp_tests_options['permalink_structure'] = GP_TESTS_PERMALINK_STRUCTURE; 24 25 require WP_TESTS_DIR . '/includes/bootstrap.php'; 26 27 require_once GP_TESTS_DIR . '/lib/testcase.php'; 28 require_once GP_TESTS_DIR . '/lib/testcase-route.php'; 29 require_once GP_TESTS_DIR . '/lib/testcase-request.php';
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Apr 22 01:02:00 2021 | Cross-referenced by PHPXref 0.7.1 |