Make WordPress Core


Ignore:
Timestamp:
11/29/2022 12:32:37 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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

Adds a public visibility to test fixtures, tests, data providers, and callbacks methods. This continues the previous efforts to make sure visibility is declared on all methods.

Note: This will be enforced by WPCS 3.0.0.

Follow-up to [51919], [52009], [52010].

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/block-supports/colors.php

    r54211 r54889  
    1111    private $test_block_name;
    1212
    13     function set_up() {
     13    public function set_up() {
    1414        parent::set_up();
    1515        $this->test_block_name = null;
    1616    }
    1717
    18     function tear_down() {
     18    public function tear_down() {
    1919        unregister_block_type( $this->test_block_name );
    2020        $this->test_block_name = null;
     
    2525     * @ticket 54337
    2626     */
    27     function test_color_slugs_with_numbers_are_kebab_cased_properly() {
     27    public function test_color_slugs_with_numbers_are_kebab_cased_properly() {
    2828        $this->test_block_name = 'test/color-slug-with-numbers';
    2929        register_block_type(
     
    6969     * @ticket 55505
    7070     */
    71     function test_color_with_skipped_serialization_block_supports() {
     71    public function test_color_with_skipped_serialization_block_supports() {
    7272        $this->test_block_name = 'test/color-with-skipped-serialization-block-supports';
    7373        register_block_type(
     
    110110     * @ticket 55505
    111111     */
    112     function test_gradient_with_individual_skipped_serialization_block_supports() {
     112    public function test_gradient_with_individual_skipped_serialization_block_supports() {
    113113        $this->test_block_name = 'test/gradient-with-individual-skipped-serialization-block-support';
    114114        register_block_type(
Note: See TracChangeset for help on using the changeset viewer.