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/spacing.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_spacing_style_is_applied() {
     27        public function test_spacing_style_is_applied() {
    2828                $this->test_block_name = 'test/spacing-style-is-applied';
    2929                register_block_type(
     
    7373         * @ticket 55505
    7474         */
    75         function test_spacing_with_skipped_serialization_block_supports() {
     75        public function test_spacing_with_skipped_serialization_block_supports() {
    7676                $this->test_block_name = 'test/spacing-with-skipped-serialization-block-supports';
    7777                register_block_type(
     
    120120         * @ticket 55505
    121121         */
    122         function test_margin_with_individual_skipped_serialization_block_supports() {
     122        public function test_margin_with_individual_skipped_serialization_block_supports() {
    123123                $this->test_block_name = 'test/margin-with-individual-skipped-serialization-block-supports';
    124124                register_block_type(
Note: See TracChangeset for help on using the changeset viewer.