Skip to content

Commit eea3f58

Browse files
committed
add hooks to the test
1 parent 4b97d41 commit eea3f58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test-class-activitypub-post.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22
class Test_Activitypub_Post extends WP_UnitTestCase {
33
public function test_to_array() {
4-
\Activitypub\Activitypub::init();
4+
\add_action( 'wp_trash_post', array( '\Activitypub\Activitypub', 'trash_post' ), 1 );
5+
\add_action( 'untrash_post', array( '\Activitypub\Activitypub', 'untrash_post' ), 1 );
56

67
$post = \wp_insert_post(
78
array(

0 commit comments

Comments
 (0)