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

@@ -134,7 +134,7 @@ class ShortcodesTest extends \MailPoetTest {
$result =
$shortcodesObject->process(['[newsletter:post_title]'], $content);
$wpPost = get_post($this->wPPost);
expect($result['0'])->equals($wpPost->postTitle);
expect($result['0'])->equals($wpPost->post_title); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
}
public function itCanProcessPostNotificationNewsletterNumberShortcode() {