diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist
index 8df7102fe..cde1e5400 100644
--- a/.phpcs.xml.dist
+++ b/.phpcs.xml.dist
@@ -108,11 +108,6 @@
-
-
- /tests/*/bootstrap\.php$
-
-
/tests/*\.php$
diff --git a/tests/wp/bootstrap.php b/tests/wp/bootstrap.php
index de3c4e2b5..0bc1ce523 100644
--- a/tests/wp/bootstrap.php
+++ b/tests/wp/bootstrap.php
@@ -20,10 +20,8 @@
*/
require_once dirname( __DIR__, 2 ) . '/vendor/yoast/wp-test-utils/src/WPIntegration/bootstrap-functions.php';
-$_wp_tests_dir = WPIntegration\get_path_to_wp_test_dir();
-
// Get access to tests_add_filter() function.
-require_once $_wp_tests_dir . 'includes/functions.php';
+require_once WPIntegration\get_path_to_wp_test_dir() . 'includes/functions.php';
tests_add_filter(
'muplugins_loaded',