Tests: Use the data_ prefix for various data provider methods.

This aims to bring more consistency to the test suite, as the vast majority of data providers already use that prefix.

Includes moving some data providers next to the tests they are used in.

Follow-up to [55464].

See #57841.

git-svn-id: https://develop.svn.wordpress.org/trunk@55562 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2023-03-19 12:03:30 +00:00
parent 81fd448129
commit d1046dc5f3
60 changed files with 680 additions and 679 deletions

View File

@@ -73,7 +73,7 @@ class Tests_Admin_wpPrivacyRequestsTable extends WP_UnitTestCase {
* @param string|null $search Search term.
* @param string $expected Expected in SQL query.
* @dataProvider data_test_columns_should_be_sortable
* @dataProvider data_columns_should_be_sortable
* @covers WP_Privacy_Requests_Table::prepare_items
* @ticket 43960
*/
@@ -125,7 +125,7 @@ class Tests_Admin_wpPrivacyRequestsTable extends WP_UnitTestCase {
* }
* }
*/
public function data_test_columns_should_be_sortable() {
public function data_columns_should_be_sortable() {
return array(
// Default order (ID) DESC.
array(