Add Event Sources Logic (ActivityPub follows) #86
2 changed files with 1 additions and 4 deletions
|
@ -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 );
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue