mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user