PHP Classes

File: tests/bootstrap.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Cool Kids Network For WP Plugin   tests/bootstrap.php   Download  
File: tests/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Cool Kids Network For WP Plugin
WordPress plugin to manage users with roles
Author: By
Last change:
Date: 6 days 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';