From a9d639ca56700192e1d42c237992f5bd27a1eaa6 Mon Sep 17 00:00:00 2001 From: Aristeides Stathopoulos Date: Mon, 22 Jan 2024 12:18:31 +0200 Subject: [PATCH] Unnecessary var --- tests/bootstrap.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 33617db..087dfe9 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -14,11 +14,8 @@ require_once \dirname( __DIR__ ) . '/vendor/yoast/wp-test-utils/src/WPIntegration/bootstrap-functions.php'; -// Determine the WP_TEST_DIR. -$yoast_comment_tests_dir = WPIntegration\get_path_to_wp_test_dir(); - // Give access to tests_add_filter() function. -require_once \rtrim( $yoast_comment_tests_dir, '/' ) . '/includes/functions.php'; +require_once \rtrim( WPIntegration\get_path_to_wp_test_dir(), '/' ) . '/includes/functions.php'; /** * Manually load the plugin being tested.