fix test
This commit is contained in:
parent
c221daef86
commit
6878b86922
2 changed files with 2 additions and 1 deletions
|
@ -76,7 +76,6 @@ class Post {
|
||||||
$permalink = \get_permalink( $post );
|
$permalink = \get_permalink( $post );
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace 'trashed' for delete activity
|
|
||||||
return $permalink;
|
return $permalink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,8 @@ class Test_Activitypub_Post extends WP_UnitTestCase {
|
||||||
|
|
||||||
\wp_trash_post( $post );
|
\wp_trash_post( $post );
|
||||||
|
|
||||||
|
$post = \get_post( $post );
|
||||||
|
|
||||||
$activitypub_post = new \Activitypub\Model\Post( $post );
|
$activitypub_post = new \Activitypub\Model\Post( $post );
|
||||||
|
|
||||||
$this->assertEquals( $permalink, $activitypub_post->get_id() );
|
$this->assertEquals( $permalink, $activitypub_post->get_id() );
|
||||||
|
|
Loading…
Reference in a new issue