Code is Poetry.

WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.



git-svn-id: https://develop.svn.wordpress.org/trunk@42343 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2017-11-30 23:09:33 +00:00
parent ec6a089f98
commit 8f95800d52
1103 changed files with 105981 additions and 78187 deletions

View File

@@ -14,9 +14,11 @@ class Tests_Get_Comment_Count extends WP_UnitTestCase {
}
public function test_get_comment_count_approved() {
self::factory()->comment->create( array(
'comment_approved' => 1
) );
self::factory()->comment->create(
array(
'comment_approved' => 1,
)
);
$count = get_comment_count();
@@ -29,9 +31,11 @@ class Tests_Get_Comment_Count extends WP_UnitTestCase {
}
public function test_get_comment_count_awaiting() {
self::factory()->comment->create( array(
'comment_approved' => 0
) );
self::factory()->comment->create(
array(
'comment_approved' => 0,
)
);
$count = get_comment_count();
@@ -44,9 +48,11 @@ class Tests_Get_Comment_Count extends WP_UnitTestCase {
}
public function test_get_comment_count_spam() {
self::factory()->comment->create( array(
'comment_approved' => 'spam'
) );
self::factory()->comment->create(
array(
'comment_approved' => 'spam',
)
);
$count = get_comment_count();
@@ -59,9 +65,11 @@ class Tests_Get_Comment_Count extends WP_UnitTestCase {
}
public function test_get_comment_count_trash() {
self::factory()->comment->create( array(
'comment_approved' => 'trash'
) );
self::factory()->comment->create(
array(
'comment_approved' => 'trash',
)
);
$count = get_comment_count();
@@ -74,9 +82,11 @@ class Tests_Get_Comment_Count extends WP_UnitTestCase {
}
public function test_get_comment_count_post_trashed() {
self::factory()->comment->create( array(
'comment_approved' => 'post-trashed'
) );
self::factory()->comment->create(
array(
'comment_approved' => 'post-trashed',
)
);
$count = get_comment_count();