Coding Standards: Add missing visibility keywords to Tests_Comment
methods.
See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@48229 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7653810aa2
commit
3e1f66bb2e
@ -30,7 +30,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_wp_update_comment() {
|
public function test_wp_update_comment() {
|
||||||
$post = self::factory()->post->create_and_get(
|
$post = self::factory()->post->create_and_get(
|
||||||
array(
|
array(
|
||||||
'post_title' => 'some-post',
|
'post_title' => 'some-post',
|
||||||
@ -73,7 +73,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
|||||||
/**
|
/**
|
||||||
* @ticket 30627
|
* @ticket 30627
|
||||||
*/
|
*/
|
||||||
function test_wp_update_comment_updates_comment_type() {
|
public function test_wp_update_comment_updates_comment_type() {
|
||||||
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
||||||
|
|
||||||
wp_update_comment(
|
wp_update_comment(
|
||||||
@ -90,7 +90,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
|||||||
/**
|
/**
|
||||||
* @ticket 36784
|
* @ticket 36784
|
||||||
*/
|
*/
|
||||||
function test_wp_update_comment_updates_comment_meta() {
|
public function test_wp_update_comment_updates_comment_meta() {
|
||||||
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
||||||
wp_update_comment(
|
wp_update_comment(
|
||||||
array(
|
array(
|
||||||
@ -107,7 +107,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
|||||||
/**
|
/**
|
||||||
* @ticket 30307
|
* @ticket 30307
|
||||||
*/
|
*/
|
||||||
function test_wp_update_comment_updates_user_id() {
|
public function test_wp_update_comment_updates_user_id() {
|
||||||
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => self::$post_id ) );
|
||||||
|
|
||||||
wp_update_comment(
|
wp_update_comment(
|
||||||
@ -124,7 +124,7 @@ class Tests_Comment extends WP_UnitTestCase {
|
|||||||
/**
|
/**
|
||||||
* @ticket 34954
|
* @ticket 34954
|
||||||
*/
|
*/
|
||||||
function test_wp_update_comment_with_no_post_id() {
|
public function test_wp_update_comment_with_no_post_id() {
|
||||||
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => 0 ) );
|
$comment_id = self::factory()->comment->create( array( 'comment_post_ID' => 0 ) );
|
||||||
|
|
||||||
$updated_comment_text = 'I should be able to update a comment with a Post ID of zero';
|
$updated_comment_text = 'I should be able to update a comment with a Post ID of zero';
|
||||||
|
Loading…
Reference in New Issue
Block a user