WordPress.org

Make WordPress Core

Changeset 46466


Ignore:
Timestamp:
10/12/2019 03:00:32 AM (5 weeks ago)
Author:
SergeyBiryukov
Message:

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

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/pluggable.php

    r43571 r46466  
    1212     * @ticket 33867
    1313     *
    14      * @dataProvider getDefinedPluggableFunctions
     14     * @dataProvider get_defined_pluggable_functions
    1515     */
    16     public function testPluggableFunctionSignaturesMatch( $function ) {
    17 
    18         $signatures = $this->getPluggableFunctionSignatures();
     16    public function test_pluggable_function_signatures_match( $function ) {
     17
     18        $signatures = $this->get_pluggable_function_signatures();
    1919
    2020        $this->assertTrue( function_exists( $function ) );
     
    5555     * @ticket 33867
    5656     */
    57     public function testAllPluggableFunctionsExist() {
    58 
    59         $defined  = wp_list_pluck( $this->getDefinedPluggableFunctions(), 0 );
    60         $expected = $this->getPluggableFunctionSignatures();
     57    public function test_all_pluggable_functions_exist() {
     58
     59        $defined  = wp_list_pluck( $this->get_defined_pluggable_functions(), 0 );
     60        $expected = $this->get_pluggable_function_signatures();
    6161
    6262        foreach ( $expected as $function => $sig ) {
     
    7373     * @return array Data provider array of pluggable function names.
    7474     */
    75     public function getDefinedPluggableFunctions() {
     75    public function get_defined_pluggable_functions() {
    7676
    7777        require_once ABSPATH . '/wp-admin/includes/upgrade.php';
     
    121121     * @return array Array of signatures keyed by their function name.
    122122     */
    123     public function getPluggableFunctionSignatures() {
     123    public function get_pluggable_function_signatures() {
    124124
    125125        $signatures = array(
Note: See TracChangeset for help on using the changeset viewer.