run eventorganiser_install in test set_up function
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 44s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m0s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s

This commit is contained in:
André Menrath 2024-11-30 11:26:46 +01:00
parent 06d73671fe
commit 226095bd05
2 changed files with 2 additions and 5 deletions

View file

@ -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';
}

View file

@ -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();
}