From 6878b86922299d44e063bc13c314cca7fc830fe8 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Tue, 27 Dec 2022 15:56:46 +0100 Subject: [PATCH] fix test --- includes/model/class-post.php | 1 - tests/test-class-activitypub-post.php | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/model/class-post.php b/includes/model/class-post.php index 02b77fe..412de24 100644 --- a/includes/model/class-post.php +++ b/includes/model/class-post.php @@ -76,7 +76,6 @@ class Post { $permalink = \get_permalink( $post ); } - // replace 'trashed' for delete activity return $permalink; } diff --git a/tests/test-class-activitypub-post.php b/tests/test-class-activitypub-post.php index 4f1c74e..08e0bfd 100644 --- a/tests/test-class-activitypub-post.php +++ b/tests/test-class-activitypub-post.php @@ -16,6 +16,8 @@ class Test_Activitypub_Post extends WP_UnitTestCase { \wp_trash_post( $post ); + $post = \get_post( $post ); + $activitypub_post = new \Activitypub\Model\Post( $post ); $this->assertEquals( $permalink, $activitypub_post->get_id() );