diff --git a/tests/phpunit/tests/pluggable.php b/tests/phpunit/tests/pluggable.php index e711f3b8bc..fd97a2dd77 100644 --- a/tests/phpunit/tests/pluggable.php +++ b/tests/phpunit/tests/pluggable.php @@ -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(