Replace instance_of asserts in integration tests

[MAILPOET-4258]
This commit is contained in:
David Remer
2022-11-24 14:55:16 +02:00
committed by Jan Lysý
parent 2557171953
commit d2ec7bba42
69 changed files with 406 additions and 402 deletions

View File

@ -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();
}