mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-11 16:14:32 +00:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user