We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b984319 commit 4b97d41Copy full SHA for 4b97d41
tests/test-class-activitypub-post.php
@@ -1,6 +1,8 @@
1
<?php
2
class Test_Activitypub_Post extends WP_UnitTestCase {
3
public function test_to_array() {
4
+ \Activitypub\Activitypub::init();
5
+
6
$post = \wp_insert_post(
7
array(
8
'post_author' => 1,
@@ -16,8 +18,6 @@ public function test_to_array() {
16
18
17
19
\wp_trash_post( $post );
20
- \sleep( 3 );
-
21
$activitypub_post = new \Activitypub\Model\Post( $post );
22
23
$this->assertEquals( $permalink, $activitypub_post->get_id() );
0 commit comments