1, 'post_content' => 'test', ) ); $permalink = \get_permalink( $post ); $activitypub_post = new \Activitypub\Model\Post( $post ); $this->assertEquals( $permalink, $activitypub_post->get_permalink() ); \wp_trash_post( $post ); $activitypub_post = new \Activitypub\Model\Post( $post ); $this->assertEquals( $permalink, $activitypub_post->get_permalink() ); } }