Make WordPress Core

Changeset 48229


Ignore:
Timestamp:
06/30/2020 11:38:40 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Add missing visibility keywords to Tests_Comment methods.

See #49542.

File:
1 edited

Legend:

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

    r48228 r48229  
    3131        }
    3232
    33         function test_wp_update_comment() {
     33        public function test_wp_update_comment() {
    3434                $post     = self::factory()->post->create_and_get(
    3535                        array(
    … …  
    7474         * @ticket 30627
    7575         */
    76         function test_wp_update_comment_updates_comment_type() {
     76        public function test_wp_update_comment_updates_comment_type() {
    7777                $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
    7878
    … …  
    9191         * @ticket 36784
    9292         */
    93         function test_wp_update_comment_updates_comment_meta() {
     93        public function test_wp_update_comment_updates_comment_meta() {
    9494                $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
    9595                wp_update_comment(
    … …  
    108108         * @ticket 30307
    109109         */
    110         function test_wp_update_comment_updates_user_id() {
     110        public function test_wp_update_comment_updates_user_id() {
    111111                $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
    112112
    … …  
    125125         * @ticket 34954
    126126         */
    127         function test_wp_update_comment_with_no_post_id() {
     127        public function test_wp_update_comment_with_no_post_id() {
    128128                $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => 0 ) );
    129129
Note: See TracChangeset for help on using the changeset viewer.