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:
Rachel Baker 2016-10-20 05:24:39 +00:00
parent 72418d4bc1
commit 5a33080de0
1 changed files with 2 additions and 0 deletions

View File

@ -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() {