From ba222a4a9a4ac6f0eefd869d0283f8477e6e2f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 21 Dec 2024 11:06:03 +0100 Subject: [PATCH] phpcs --- .../activitypub/transmogrifier/class-test-gatherpress.php | 2 +- .../transmogrifier/class-test-the-events-calendar.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php index 9141a01..c26e2f3 100644 --- a/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php +++ b/tests/includes/activitypub/transmogrifier/class-test-gatherpress.php @@ -130,7 +130,7 @@ class Test_GatherPress extends \WP_UnitTestCase { // Check if post has been created. $event_query = Event_Query::get_instance(); - $the_query = $event_query->get_upcoming_events(); + $the_query = $event_query->get_upcoming_events(); $this->assertEquals( true, $the_query->have_posts() ); $this->assertEquals( 1, $the_query->post_count ); diff --git a/tests/includes/activitypub/transmogrifier/class-test-the-events-calendar.php b/tests/includes/activitypub/transmogrifier/class-test-the-events-calendar.php index 6f59712..e5416b5 100644 --- a/tests/includes/activitypub/transmogrifier/class-test-the-events-calendar.php +++ b/tests/includes/activitypub/transmogrifier/class-test-the-events-calendar.php @@ -72,9 +72,6 @@ class Test_The_Events_Calendar extends \WP_UnitTestCase { \Activitypub\Rest\Server::add_hooks(); - // Mock the plugin activation. - \GatherPress\Core\Setup::get_instance()->activate_gatherpress_plugin( false ); - // Make sure that ActivityPub support is enabled for The Events Calendar. $aec = \Event_Bridge_For_ActivityPub\Setup::get_instance(); $aec->activate_activitypub_support_for_active_event_plugins();