Replace instance_of asserts in integration tests
[MAILPOET-4258]
This commit is contained in:
@ -30,7 +30,7 @@ class AutomatedLatestContentTest extends \MailPoetTest {
|
||||
// WP's default post type 'revision' is excluded from search
|
||||
// https://codex.wordpress.org/Post_Types
|
||||
$revisionPostType = get_post_type_object('revision');
|
||||
assert($revisionPostType instanceof \WP_Post_Type);
|
||||
$this->assertInstanceOf(\WP_Post_Type::class, $revisionPostType);
|
||||
expect($revisionPostType->exclude_from_search)->true(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
|
||||
expect(isset($response->data['revision']))->false();
|
||||
}
|
||||
|
Reference in New Issue
Block a user