Skip to content
Snippets Groups Projects
Select Git revision
  • 0eb95cc49d2afec9fcb38e716925ddd1bf3d1625
  • master default protected
  • feat/npm-publish
  • feat/demo-deploy
  • change-demo-deploy
  • remove-smoke
  • feat/acceptance-tests
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • skip-codecept-for-libs
  • include-composer-json
  • exclude-wp-assets
  • update_codecept_image
  • fix/silenced-copy
  • remove-free-translations
  • codeception-with-optional-step
  • improve-parallelization
  • linter-exit
  • change-images
  • fix/linter
  • globally-raise-mem-limit
  • no-symlink2
22 results

bootstrap.php

Blame
  • bootstrap.php 802 B
    <?php
    // disable xdebug backtrace
    if ( function_exists( 'xdebug_disable' ) ) {
    	xdebug_disable();
    }
    
    if ( getenv( 'DEPENDENT_PLUGINS_DIR' ) !== false ) {
    	define( 'DEPENDENT_PLUGINS_DIR', getenv( 'DEPENDENT_PLUGINS_DIR' ) );
    } else {
    	define( 'DEPENDENT_PLUGINS_DIR', '/tmp/plugins' );
    }
    
    
    if ( getenv( 'PLUGIN_PATH' ) !== false ) {
    	define( 'PLUGIN_PATH', getenv( 'PLUGIN_PATH' ) );
    } else {
    	define( 'PLUGIN_PATH', __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR );
    }
    
    require_once( getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/functions.php' );
    
    tests_add_filter( 'muplugins_loaded', function () {
    }, 100 );
    
    putenv('WP_TESTS_DIR=' . getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit');
    require_once( getenv( 'WC_DEVELOP_DIR' ) . '/tests/bootstrap.php' );