From 3e030664ddc1ac38d1a1ed88b1877ea992d0404f Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 27 Jul 2020 22:23:17 +0200 Subject: [PATCH 1/2] Variables/RestrictedVariables: fix namespace of unit test file --- .../Tests/Variables/RestrictedVariablesUnitTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.php b/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.php index eaba9c0c..414349f5 100644 --- a/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.php +++ b/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.php @@ -5,7 +5,7 @@ * @package VIPCS\WordPressVIPMinimum */ -namespace WordPress\Tests\Variables; +namespace WordPressVIPMinimum\Tests\Variables; use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; From bc780bb9ef37c5980140a4bf7278750388773527 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 27 Jul 2020 22:39:17 +0200 Subject: [PATCH 2/2] Variables/RestrictedVariables: fix the test Now the test is actually running under the proper namespace, it comes to light that the test for the `exclude` property is not working as it is using an outdated syntax. Fixed now. --- .../Tests/Variables/RestrictedVariablesUnitTest.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.inc b/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.inc index 61c4a5b2..8918d631 100644 --- a/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.inc +++ b/WordPressVIPMinimum/Tests/Variables/RestrictedVariablesUnitTest.inc @@ -28,10 +28,10 @@ $phrase = <<