Skip to content

Commit 01348a0

Browse files
committed
CS fix (ignore it 'cause it's in tests)
1 parent 58c08b4 commit 01348a0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/traits/test-class-ajax-security-aioseo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function test_verify_aioseo_active_or_fail_not_active() {
7272
// WordPress Core's _handleAjax() starts output buffering before calling AJAX actions.
7373
// We need to do the same since we're calling methods directly.
7474
// WordPress Core's dieHandler() will call ob_get_clean() to clean this buffer.
75-
\ini_set( 'implicit_flush', false );
75+
\ini_set( 'implicit_flush', false ); // phpcs:ignore WordPress.PHP.IniSet.Risky
7676
\ob_start();
7777

7878
// WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().

tests/phpunit/traits/test-class-ajax-security-base.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function test_verify_nonce_or_fail_invalid() {
105105
// WordPress Core's _handleAjax() starts output buffering before calling AJAX actions.
106106
// We need to do the same since we're calling methods directly.
107107
// WordPress Core's dieHandler() will call ob_get_clean() to clean this buffer.
108-
\ini_set( 'implicit_flush', false );
108+
\ini_set( 'implicit_flush', false ); // phpcs:ignore WordPress.PHP.IniSet.Risky
109109
\ob_start();
110110

111111
// WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().
@@ -158,7 +158,7 @@ public function test_verify_capability_or_fail_non_admin() {
158158
// WordPress Core's _handleAjax() starts output buffering before calling AJAX actions.
159159
// We need to do the same since we're calling methods directly.
160160
// WordPress Core's dieHandler() will call ob_get_clean() to clean this buffer.
161-
\ini_set( 'implicit_flush', false );
161+
\ini_set( 'implicit_flush', false ); // phpcs:ignore WordPress.PHP.IniSet.Risky
162162
\ob_start();
163163

164164
// WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().

tests/phpunit/traits/test-class-ajax-security-yoast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function test_verify_yoast_active_or_fail_not_active() {
7272
// WordPress Core's _handleAjax() starts output buffering before calling AJAX actions.
7373
// We need to do the same since we're calling methods directly.
7474
// WordPress Core's dieHandler() will call ob_get_clean() to clean this buffer.
75-
\ini_set( 'implicit_flush', false );
75+
\ini_set( 'implicit_flush', false ); // phpcs:ignore WordPress.PHP.IniSet.Risky
7676
\ob_start();
7777

7878
// WP_Ajax_UnitTestCase allows us to test AJAX methods that call wp_send_json_error().

0 commit comments

Comments
 (0)