[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/tests/phpunit/ -> bootstrap.php (source)

   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';


Generated: Tue Oct 27 01:01:59 2020 Cross-referenced by PHPXref 0.7.1