freifunkmeta/tests/bootstrap.php

16 lines
407 B
PHP
Raw Permalink Normal View History

2014-05-26 15:35:17 +02:00
<?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';
2014-06-16 16:21:43 +02:00
require 'mock_ext_dataservice.php';