Skip to content

Commit 4b97d41

Browse files
committed
be sure to register hooks
1 parent b984319 commit 4b97d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-class-activitypub-post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22
class Test_Activitypub_Post extends WP_UnitTestCase {
33
public function test_to_array() {
4+
\Activitypub\Activitypub::init();
5+
46
$post = \wp_insert_post(
57
array(
68
'post_author' => 1,
@@ -16,8 +18,6 @@ public function test_to_array() {
1618

1719
\wp_trash_post( $post );
1820

19-
\sleep( 3 );
20-
2121
$activitypub_post = new \Activitypub\Model\Post( $post );
2222

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

0 commit comments

Comments
 (0)