Update renamed NotCamelCaps rule

[MAILPOET-3658]
This commit is contained in:
Rostislav Wolny
2021-06-28 16:36:15 +02:00
committed by Veljko V
parent 76fe9082a3
commit 65b834a9ff
55 changed files with 195 additions and 195 deletions

View File

@@ -4,10 +4,10 @@ namespace MailPoet\Test\Config;
class InitializerTest extends \MailPoetTest {
public function testItConfiguresHooks() {
global $wp_filter; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
global $wp_filter; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
$isHooked = false;
// mailpoet should hook to 'wp_loaded' with priority of 10
foreach ($wp_filter['wp_loaded'][10] as $name => $hook) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps
foreach ($wp_filter['wp_loaded'][10] as $name => $hook) { // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps
if (preg_match('/postInitialize/', $name)) $isHooked = true;
}
expect($isHooked)->true();