Make WordPress Core


Ignore:
Timestamp:
11/04/2021 03:22:47 PM (3 years ago)
Author:
hellofromTonya
Message:

Coding Standards: Add visibility to methods in tests/phpunit/tests/.

Adds a public visibility to test fixtures, tests, data providers, and callbacks methods.

Adds a private visibility to helper methods within test classes.

Renames callbacks and helpers that previously started with a _ prefix. Why? For consistency and to leverage using the method visibility. Further naming standardizations is beyond the scope of this commit.

Props costdev, jrf, hellofromTonya.
Fixes #54177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/multisite/msFilesRewriting.php

    r51869 r52010  
    1414    class Tests_Multisite_msFilesRewriting extends WP_UnitTestCase {
    1515
    16         function set_up() {
     16        public function set_up() {
    1717            parent::set_up();
    1818            update_site_option( 'ms_files_rewriting', 1 );
     
    2020        }
    2121
    22         function test_switch_upload_dir() {
     22        public function test_switch_upload_dir() {
    2323            $this->assertTrue( is_main_site() );
    2424
     
    4949         * should change with upload directories.
    5050         */
    51         function test_upload_directories_after_multiple_wpmu_delete_blog_with_ms_files() {
     51        public function test_upload_directories_after_multiple_wpmu_delete_blog_with_ms_files() {
    5252            $filename = __FUNCTION__ . '.jpg';
    5353            $contents = __FUNCTION__ . '_contents';
Note: See TracChangeset for help on using the changeset viewer.