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 4b97d41 commit eea3f58Copy full SHA for eea3f58
tests/test-class-activitypub-post.php
@@ -1,7 +1,8 @@
1
<?php
2
class Test_Activitypub_Post extends WP_UnitTestCase {
3
public function test_to_array() {
4
- \Activitypub\Activitypub::init();
+ \add_action( 'wp_trash_post', array( '\Activitypub\Activitypub', 'trash_post' ), 1 );
5
+ \add_action( 'untrash_post', array( '\Activitypub\Activitypub', 'untrash_post' ), 1 );
6
7
$post = \wp_insert_post(
8
array(
0 commit comments