mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 10:38:22 +01:00
Posts, Post Types: Correct test_submitting_comment_to_trashed_post_returns_error()
.
`wp_trash_post()` accepts a post ID, not a `WP_Post` object. See #42030. git-svn-id: https://develop.svn.wordpress.org/trunk@41644 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1d022678bb
commit
cc08743ec5
@ -55,7 +55,7 @@ class Tests_Comment_Submission extends WP_UnitTestCase {
|
||||
$this->assertSame( 0, did_action( $error ) );
|
||||
|
||||
$post = self::factory()->post->create_and_get();
|
||||
wp_trash_post( $post );
|
||||
wp_trash_post( $post->ID );
|
||||
$data = array(
|
||||
'comment_post_ID' => $post->ID,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user