phpcs
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 52s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 53s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 53s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 56s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 53s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Failing after 56s

This commit is contained in:
André Menrath 2024-12-21 11:06:03 +01:00
parent f413bb38d3
commit ba222a4a9a
2 changed files with 1 additions and 4 deletions

View file

@ -130,7 +130,7 @@ class Test_GatherPress extends \WP_UnitTestCase {
// Check if post has been created. // Check if post has been created.
$event_query = Event_Query::get_instance(); $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( true, $the_query->have_posts() );
$this->assertEquals( 1, $the_query->post_count ); $this->assertEquals( 1, $the_query->post_count );

View file

@ -72,9 +72,6 @@ class Test_The_Events_Calendar extends \WP_UnitTestCase {
\Activitypub\Rest\Server::add_hooks(); \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. // Make sure that ActivityPub support is enabled for The Events Calendar.
$aec = \Event_Bridge_For_ActivityPub\Setup::get_instance(); $aec = \Event_Bridge_For_ActivityPub\Setup::get_instance();
$aec->activate_activitypub_support_for_active_event_plugins(); $aec->activate_activitypub_support_for_active_event_plugins();