Skip to content

Commit

Permalink
Fix broken test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Aug 29, 2020
1 parent 540aa6e commit 9eef44d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.testing
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PLUGIN_NAME="EA WP AWS SES Bounce Handler"
PLUGIN_SLUG=ea-wp-aws-ses-bounce-handler
WP_ROOT_FOLDER="vendor/wordpress/wordpress/src"
WP_ROOT_FOLDER="wordpress"
TEST_SITE_WP_ADMIN_PATH="/wp-admin"
TEST_SITE_DB_NAME="ea_wp_aws_ses_bounce_handler_tests"
TEST_SITE_DB_HOST="127.0.0.1"
Expand Down
2 changes: 0 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@
$GLOBALS['plugin_basename'] = $plugin_name . '/' . $plugin_name_php;
$GLOBALS['wordpress_root_dir'] = $project_root_dir . '/vendor/wordpress/wordpress/src';


require_once $plugin_root_dir . '/autoload.php';
1 change: 1 addition & 0 deletions tests/unit.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ modules:
- Asserts
- \Helper\Unit
step_decorators: ~
bootstrap: _bootstrap.php
1 change: 1 addition & 0 deletions tests/unit/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* @package EA_WP_AWS_SES_Bounce_Handler
*/

global $plugin_root_dir;
require_once $plugin_root_dir . '/autoload.php';

WP_Mock::bootstrap();
3 changes: 2 additions & 1 deletion tests/wpunit.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ modules:
domain: "%TEST_SITE_WP_DOMAIN%"
adminEmail: "%TEST_SITE_ADMIN_EMAIL%"
title: "ea-wp-aws-ses-bounce-handler"
plugins: ['ea-wp-aws-ses-bounce-handler/ea-wp-aws-ses-bounce-handler.php']
plugins: []
activatePlugins: []
bootstrap: _bootstrap.php
1 change: 1 addition & 0 deletions tests/wpunit/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
* @package EA_WP_AWS_SES_Bounce_Handler
*/

global $plugin_root_dir;
require_once $plugin_root_dir . '/autoload.php';

0 comments on commit 9eef44d

Please sign in to comment.