Add Event Sources Logic (ActivityPub follows) #86

Open
linos wants to merge 95 commits from event_sources into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 6ec1079c80 - Show all commits

View file

@ -279,7 +279,7 @@ abstract class Base {
* @param int $activitypub_event_id The ActivityPub events ID.
*/
public function delete( $activitypub_event_id ) {
$post_id = self::get_post_id_from_activitypub_id( $activitypub_event_id);
$post_id = self::get_post_id_from_activitypub_id( $activitypub_event_id );
if ( ! $post_id ) {
return new WP_Error(

View file

@ -135,7 +135,7 @@ class Test_VS_Event_List extends \WP_UnitTestCase {
$events = get_posts( array( 'post_type' => IntegrationsVS_Event_List::get_post_type() ) );
$this->assertCount( 1, $events );
$event = $events[0];
$this->assertStringContainsString( 'Updated address' , get_post_meta( $event->ID, 'event-location', true ) );
$this->assertStringContainsString( 'Updated address', get_post_meta( $event->ID, 'event-location', true ) );
// We should see the updates.
$this->assertEquals( 'Updated name', $event->post_title );