Skip to content

Commit 6878b86

Browse files
committed
fix test
1 parent c221dae commit 6878b86

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

includes/model/class-post.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public function generate_id() {
7676
$permalink = \get_permalink( $post );
7777
}
7878

79-
// replace 'trashed' for delete activity
8079
return $permalink;
8180
}
8281

tests/test-class-activitypub-post.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public function test_to_array() {
1616

1717
\wp_trash_post( $post );
1818

19+
$post = \get_post( $post );
20+
1921
$activitypub_post = new \Activitypub\Model\Post( $post );
2022

2123
$this->assertEquals( $permalink, $activitypub_post->get_id() );

0 commit comments

Comments
 (0)