Tests: Rename tests methods in `tests/pluggable.php` per the handbook's naming convention.

See #47632.

git-svn-id: https://develop.svn.wordpress.org/trunk@46466 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2019-10-12 03:00:32 +00:00
parent 5e6d8f584d
commit 572934992f
1 changed files with 8 additions and 8 deletions

View File

@ -11,11 +11,11 @@ class Tests_Pluggable extends WP_UnitTestCase {
* @ticket 33654
* @ticket 33867
*
* @dataProvider getDefinedPluggableFunctions
* @dataProvider get_defined_pluggable_functions
*/
public function testPluggableFunctionSignaturesMatch( $function ) {
public function test_pluggable_function_signatures_match( $function ) {
$signatures = $this->getPluggableFunctionSignatures();
$signatures = $this->get_pluggable_function_signatures();
$this->assertTrue( function_exists( $function ) );
$this->assertArrayHasKey( $function, $signatures );
@ -54,10 +54,10 @@ class Tests_Pluggable extends WP_UnitTestCase {
* @ticket 33654
* @ticket 33867
*/
public function testAllPluggableFunctionsExist() {
public function test_all_pluggable_functions_exist() {
$defined = wp_list_pluck( $this->getDefinedPluggableFunctions(), 0 );
$expected = $this->getPluggableFunctionSignatures();
$defined = wp_list_pluck( $this->get_defined_pluggable_functions(), 0 );
$expected = $this->get_pluggable_function_signatures();
foreach ( $expected as $function => $sig ) {
$msg = 'Function: ' . $function . '()';
@ -72,7 +72,7 @@ class Tests_Pluggable extends WP_UnitTestCase {
*
* @return array Data provider array of pluggable function names.
*/
public function getDefinedPluggableFunctions() {
public function get_defined_pluggable_functions() {
require_once ABSPATH . '/wp-admin/includes/upgrade.php';
@ -120,7 +120,7 @@ class Tests_Pluggable extends WP_UnitTestCase {
*
* @return array Array of signatures keyed by their function name.
*/
public function getPluggableFunctionSignatures() {
public function get_pluggable_function_signatures() {
$signatures = array(