mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +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:
@@ -578,7 +578,7 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
* @param arrray|string|null $last_result The value to assign to `$wpdb->last_result`.
|
||||
* @param int|string $column The column index to retrieve.
|
||||
*
|
||||
* @dataProvider data_test_get_col
|
||||
* @dataProvider data_get_col
|
||||
*
|
||||
* @ticket 45299
|
||||
*/
|
||||
@@ -612,7 +612,7 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
* @type arrray|string|null $last_result The value to assign to `$wpdb->last_result`.
|
||||
* @type int|string $column The column index to retrieve.
|
||||
*/
|
||||
public function data_test_get_col() {
|
||||
public function data_get_col() {
|
||||
global $wpdb;
|
||||
|
||||
return array(
|
||||
@@ -2239,7 +2239,7 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider parse_db_host_data_provider
|
||||
* @dataProvider data_parse_db_host
|
||||
* @ticket 41722
|
||||
* @ticket 54877
|
||||
*/
|
||||
@@ -2260,7 +2260,7 @@ class Tests_DB extends WP_UnitTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
public function parse_db_host_data_provider() {
|
||||
public function data_parse_db_host() {
|
||||
return array(
|
||||
array(
|
||||
'', // DB_HOST.
|
||||
|
||||
Reference in New Issue
Block a user