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
class Test_Activitypub_Post extends WP_UnitTestCase {
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(
array(
'post_author' => 1,