REST API: Fix comment option leak causing another test failure.
Set the 'comment_whitelist' option back to the default when tearing down wpAllowComment tests. See #38373. git-svn-id: https://develop.svn.wordpress.org/trunk@38835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
72418d4bc1
commit
5a33080de0
@ -26,6 +26,8 @@ class Tests_Comment_WpAllowComment extends WP_UnitTestCase {
|
||||
function tearDown() {
|
||||
wp_delete_post( self::$post_id, true );
|
||||
wp_delete_comment( self::$comment_id, true );
|
||||
|
||||
update_option( 'comment_whitelist', 1 );
|
||||
}
|
||||
|
||||
public function test_allow_comment_if_comment_author_emails_differ() {
|
||||
|
Loading…
Reference in New Issue
Block a user