diff --git a/tests/bootstrap.php b/tests/bootstrap.php index bfbc6b5eb282422f4fe77ec870129006fb987c74..d164087f0bc834009196bb1eb3d36a7e2f25630b 100755 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -9,6 +9,7 @@ $_tests_dir = getenv( 'WP_TESTS_DIR' ); if ( ! $_tests_dir ) { + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $_tests_dir = rtrim( sys_get_temp_dir(), '/\\' ) . '/wordpress-tests-lib'; } diff --git a/tests/test-redirect-callbacks.php b/tests/test-redirect-callbacks.php index 5c14b09d83437228f4c5d8c77f890fe9c3967918..3264f83538809bdb55bee32b4752aafe3fb6daa6 100755 --- a/tests/test-redirect-callbacks.php +++ b/tests/test-redirect-callbacks.php @@ -57,7 +57,7 @@ class RedirectCallbacks extends WP_UnitTestCase { } /** - * test post with custom redirect code. + * Test post with custom redirect code. */ public function test_post_redirect_custom_status() { $post_id = $this->get_new_post();