PluginProbe
Vimeography: Vimeo Video Gallery WordPress Plugin / 2.2
Vimeography: Vimeo Video Gallery WordPress Plugin v2.2
2.4.9 2.4.8 trunk 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 0.6 0.6.1 0.6.2 0.6.3 0.6.4 0.6.5 0.6.6 0.6.7 0.6.8 0.6.8.1 0.6.9 0.6.9.1 0.6.9.2 0.7 0.8 All 103 releases
vimeography / tests / bootstrap.php

bootstrap.php in Vimeography: Vimeo Video Gallery WordPress Plugin 2.2, at tests/bootstrap.php

31 lines 826 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 ini_set('display_errors','on');
4 error_reporting(E_ALL);
5
6 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
7 $_SERVER['SERVER_NAME'] = '';
8 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
9
10 $_tests_dir = getenv('WP_TESTS_DIR');
11 if ( !$_tests_dir ) $_tests_dir = '/tmp/wordpress-tests-lib';
12
13 require_once $_tests_dir . '/includes/functions.php';
14
15 // Force WP_ADMIN to be true
16 define( 'WP_ADMIN', true );
17
18 function _manually_load_plugins() {
19 require dirname( __FILE__ ) . '/../vimeography.php';
20 }
21 tests_add_filter( 'muplugins_loaded', '_manually_load_plugins' );
22
23 require $_tests_dir . '/includes/bootstrap.php';
24
25 require dirname( __FILE__ ) . '/framework/testcase.php';
26
27 echo "Running Vimeography Tests...\n";
28
29 global $current_user;
30 $current_user = new WP_User(1);
31 $current_user->set_role('administrator');