From b97b8d2e9af8593b7acf45373a2cb1e374d6ba48 Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Mon, 29 Apr 2024 15:53:41 -0400 Subject: [PATCH] Address provider-related test warnings --- tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php | 2 +- tests/WP_SQLite_Translator_Tests.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php b/tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php index d74715b5..9824148d 100644 --- a/tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php +++ b/tests/WP_SQLite_PDO_User_Defined_Functions_Tests.php @@ -18,7 +18,7 @@ public function testFieldFunction( $expected, $args ) { ); } - public function dataProviderForTestFieldFunction() { + public static function dataProviderForTestFieldFunction() { return array( array( 1, array( 'a', 'a' ) ), array( 2, array( 'User 0000019', 'User 0000018', 'User 0000019', 'User 0000020' ) ), diff --git a/tests/WP_SQLite_Translator_Tests.php b/tests/WP_SQLite_Translator_Tests.php index b152723f..eb8bb3e8 100644 --- a/tests/WP_SQLite_Translator_Tests.php +++ b/tests/WP_SQLite_Translator_Tests.php @@ -93,7 +93,7 @@ public function testRegexps( $operator, $regexp, $expected_result ) { ); } - public function regexpOperators() { + public static function regexpOperators() { $lowercase_rss = (object) array( 'ID' => '1', 'option_name' => 'rss_123',