From 1a58b69b80663f9164484b7efc985834cb1e91cb Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 6 Oct 2023 17:37:00 +0200 Subject: [PATCH] fix tests --- tests/test-class-inbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-class-inbox.php b/tests/test-class-inbox.php index 5a25c4e..9392cfd 100644 --- a/tests/test-class-inbox.php +++ b/tests/test-class-inbox.php @@ -40,7 +40,7 @@ class Test_Inbox extends WP_UnitTestCase { 'content' => 'example', ), ); - $converted = $inbox->convert_object_to_comment_data( $object ); + $converted = $inbox->convert_object_to_comment_data( $object, 1 ); $this->assertGreaterThan( 1, $converted['comment_post_ID'] ); $this->assertEquals( $converted['comment_author'], 'Example User' ); @@ -62,7 +62,7 @@ class Test_Inbox extends WP_UnitTestCase { 'to' => array( 'https://example.com/profile/test' ), 'cc' => array(), ); - $converted = $inbox->convert_object_to_comment_data( $object ); + $converted = $inbox->convert_object_to_comment_data( $object, 1 ); $this->assertFalse( $converted ); } }