fix tests
This commit is contained in:
parent
f92524b384
commit
1a58b69b80
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ class Test_Inbox extends WP_UnitTestCase {
|
||||||
'content' => 'example',
|
'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->assertGreaterThan( 1, $converted['comment_post_ID'] );
|
||||||
$this->assertEquals( $converted['comment_author'], 'Example User' );
|
$this->assertEquals( $converted['comment_author'], 'Example User' );
|
||||||
|
@ -62,7 +62,7 @@ class Test_Inbox extends WP_UnitTestCase {
|
||||||
'to' => array( 'https://example.com/profile/test' ),
|
'to' => array( 'https://example.com/profile/test' ),
|
||||||
'cc' => array(),
|
'cc' => array(),
|
||||||
);
|
);
|
||||||
$converted = $inbox->convert_object_to_comment_data( $object );
|
$converted = $inbox->convert_object_to_comment_data( $object, 1 );
|
||||||
$this->assertFalse( $converted );
|
$this->assertFalse( $converted );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue