add unit testing
This commit is contained in:
parent
5d5f3d07eb
commit
ec84f3d91b
8 changed files with 324 additions and 0 deletions
14
tests/bootstrap.php
Normal file
14
tests/bootstrap.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
$_tests_dir = getenv('WP_TESTS_DIR');
|
||||
if ( !$_tests_dir ) $_tests_dir = '/tmp/wordpress-tests-lib';
|
||||
|
||||
require_once $_tests_dir . '/includes/functions.php';
|
||||
|
||||
function _manually_load_plugin() {
|
||||
require dirname( __FILE__ ) . '/../freifunkmeta.php';
|
||||
}
|
||||
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );
|
||||
|
||||
require $_tests_dir . '/includes/bootstrap.php';
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue