Convert variable names to camel case
[MAILPOET-1796]
This commit is contained in:
@ -10,10 +10,10 @@ class AutomatedLatestContentTest extends \MailPoetTest {
|
||||
$endpoint = new AutomatedLatestContent(new \MailPoet\Newsletter\AutomatedLatestContent(), new WPFunctions);
|
||||
$response = $endpoint->getPostTypes();
|
||||
expect($response->data)->notEmpty();
|
||||
foreach ($response->data as $post_type) {
|
||||
expect($post_type)->count(2);
|
||||
expect($post_type['name'])->notEmpty();
|
||||
expect($post_type['label'])->notEmpty();
|
||||
foreach ($response->data as $postType) {
|
||||
expect($postType)->count(2);
|
||||
expect($postType['name'])->notEmpty();
|
||||
expect($postType['label'])->notEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,8 +22,8 @@ class AutomatedLatestContentTest extends \MailPoetTest {
|
||||
$response = $endpoint ->getPostTypes();
|
||||
// WP's default post type 'revision' is excluded from search
|
||||
// https://codex.wordpress.org/Post_Types
|
||||
$revision_post_type = get_post_type_object('revision');
|
||||
expect($revision_post_type->exclude_from_search)->true();
|
||||
$revisionPostType = get_post_type_object('revision');
|
||||
expect($revisionPostType->excludeFromSearch)->true();
|
||||
expect(isset($response->data['revision']))->false();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user