PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   WPMU Dev Plugin Test   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: WPMU Dev Plugin Test
Test WordPress plugin created using WPMU Dev
Author: By
Last change:
Date: 1 month ago
Size: 495 bytes
 

Contents

Class file image Download
<?php

/**
 * PHPUnit bootstrap file
 */

// Composer autoloader must be loaded before WP_PHPUNIT__DIR will be available
require_once dirname(__DIR__) . '/vendor/autoload.php';

// Give access to tests_add_filter() function.
require_once getenv('WP_PHPUNIT__DIR') . '/includes/functions.php';

tests_add_filter('muplugins_loaded', function () {
   
// test set up, plugin activation, etc.

});

// Start up the WP testing environment.
require getenv('WP_PHPUNIT__DIR') . '/includes/bootstrap.php';