From a94d154cab4e77d2838960555c981d9d3b1768cd Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 23 Jan 2024 17:35:41 +0100 Subject: [PATCH] Use DIR_TESTDATA --- tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php index 0a458beb5e8d2..5f59d68896605 100644 --- a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php +++ b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php @@ -85,7 +85,7 @@ public function test_parse( $fragment_context, $html, $result ) { * @return array[] */ public function data_external_html5lib_tests() { - $test_dir = __DIR__ . '/../../data/html5lib-tests/tree-construction/'; + $test_dir = DIR_TESTDATA . '/html5lib-tests/tree-construction/'; $handle = opendir( $test_dir ); while ( false !== ( $entry = readdir( $handle ) ) ) {