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