Make WordPress Core


Ignore:
Timestamp:
11/29/2022 12:32:37 PM (4 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/border.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 55505
    2626     */
    27     function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
     27    public function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
    2828        $this->test_block_name = 'test/border-color-slug-with-numbers-is-kebab-cased-properly';
    2929        register_block_type(
     
    7474     * @ticket 55505
    7575     */
    76     function test_border_with_skipped_serialization_block_supports() {
     76    public function test_border_with_skipped_serialization_block_supports() {
    7777        $this->test_block_name = 'test/border-with-skipped-serialization-block-supports';
    7878        register_block_type(
     
    118118     * @ticket 55505
    119119     */
    120     function test_radius_with_individual_skipped_serialization_block_supports() {
     120    public function test_radius_with_individual_skipped_serialization_block_supports() {
    121121        $this->test_block_name = 'test/radius-with-individual-skipped-serialization-block-supports';
    122122        register_block_type(
Note: See TracChangeset for help on using the changeset viewer.