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( '