Replace expect()->true() with verify()->true()

codeception/verify 2.1 removed support for expect()->true() so we need
to replace it with verify()->true().

[MAILPOET-5664]
This commit is contained in:
Rodrigo Primo
2023-10-18 15:29:04 -03:00
committed by David Remer
parent 35c24fb324
commit 9adbf81a78
86 changed files with 311 additions and 311 deletions

View File

@@ -31,7 +31,7 @@ class AutomatedLatestContentTest extends \MailPoetTest {
// https://codex.wordpress.org/Post_Types
$revisionPostType = get_post_type_object('revision');
$this->assertInstanceOf(\WP_Post_Type::class, $revisionPostType);
expect($revisionPostType->exclude_from_search)->true(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
verify($revisionPostType->exclude_from_search)->true(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
expect(isset($response->data['revision']))->false();
}