Update renamed NotCamelCaps rule
[MAILPOET-3658]
This commit is contained in:
committed by
Veljko V
parent
76fe9082a3
commit
65b834a9ff
@@ -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();
|
||||
|
Reference in New Issue
Block a user