Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Set WP_PLUGIN_DIR constant for tests #202

Merged
merged 1 commit into from
Dec 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
$_tests_dir = '/tmp/wordpress-tests-lib';
}

define( 'WP_PLUGIN_DIR', dirname( dirname( dirname( __FILE__ ) ) ) );

require_once $_tests_dir . '/includes/functions.php';

function _manually_load_plugin() {
require dirname( __FILE__ ) . '/../shortcake-bakery.php';
require dirname( __FILE__ ) . '/class-shortcode.php';

}
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' );

Expand Down