From ec7a2bed0af75b4b793f8e25160631e534ba96df Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Fri, 23 Oct 2026 20:29:19 +0530 Subject: [PATCH] Tests: Make data providers in shortcode.php static --- tests/phpunit/tests/shortcode.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index c14a17765075e..a744ec50286cf 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -428,7 +428,7 @@ public function test_strip_shortcodes( $expected, $content ) { $this->assertSame( $expected, strip_shortcodes( $content ) ); } - public function data_strip_shortcodes() { + public static function data_strip_shortcodes() { return array( array( 'before', 'before[gallery]' ), array( 'after', '[gallery]after' ), @@ -547,7 +547,7 @@ public function test_escaping( $input, $output ) { return $this->assertSame( $output, do_shortcode( $input ) ); } - public function data_escaping() { + public static function data_escaping() { return array( array( '