diff --git a/tests/bootstrap.php b/tests/bootstrap.php index a456c24..7056b81 100755 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -103,11 +103,6 @@ function _manually_load_plugin() { $mec_factory->install(); } - if ( 'event_organiser' === $activitypub_event_bridge_integration_filter ) { - require_once $plugin_dir . 'event-organiser/includes/event-organiser-install.php'; - eventorganiser_install(); - } - // At last manually load our WordPress plugin. require dirname( __DIR__ ) . '/activitypub-event-bridge.php'; } diff --git a/tests/test-class-plugin-event-organiser.php b/tests/test-class-plugin-event-organiser.php index a07b5a1..368443f 100644 --- a/tests/test-class-plugin-event-organiser.php +++ b/tests/test-class-plugin-event-organiser.php @@ -23,6 +23,8 @@ class Test_Event_Organiser extends WP_UnitTestCase { $aec = \ActivityPub_Event_Bridge\Setup::get_instance(); $aec->activate_activitypub_support_for_active_event_plugins(); + eventorganiser_install(); + // Delete all posts afterwards. _delete_all_posts(); }