Exclude WordPress and WooCommerce variables from camel case conversion

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-07 17:23:51 +01:00
committed by Jan Jakeš
parent fbcaeaadbc
commit 685b4885c0
25 changed files with 111 additions and 109 deletions

View File

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