Remove phpstan errors from integration API tests

[MAILPOET-3235]
This commit is contained in:
Jan Lysý
2021-01-13 17:32:20 +01:00
committed by Veljko V
parent f140875062
commit bcb62403a1
8 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,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);
expect($revisionPostType->exclude_from_search)->true(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
expect(isset($response->data['revision']))->false();
}