add hooks to the test
This commit is contained in:
parent
4b97d412e0
commit
eea3f582d6
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
class Test_Activitypub_Post extends WP_UnitTestCase {
|
class Test_Activitypub_Post extends WP_UnitTestCase {
|
||||||
public function test_to_array() {
|
public function test_to_array() {
|
||||||
\Activitypub\Activitypub::init();
|
\add_action( 'wp_trash_post', array( '\Activitypub\Activitypub', 'trash_post' ), 1 );
|
||||||
|
\add_action( 'untrash_post', array( '\Activitypub\Activitypub', 'untrash_post' ), 1 );
|
||||||
|
|
||||||
$post = \wp_insert_post(
|
$post = \wp_insert_post(
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in a new issue