remove hooks

This commit is contained in:
Matthias Pfefferle 2022-12-27 17:29:34 +01:00
parent 8a5f575803
commit 7ee91f1ab1

View file

@ -1,9 +1,6 @@
<?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() {
\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(
'post_author' => 1, 'post_author' => 1,