Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/phpunit/includes/abstract-testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function tear_down() {
}

// Reset comment globals.
$comment_globals = array( 'comment_alt', 'comment_depth', 'comment_thread_alt' );
$comment_globals = array( 'comment_alt', 'comment_depth', 'comment_thread_alt', 'in_comment_loop' );
foreach ( $comment_globals as $global ) {
$GLOBALS[ $global ] = null;
}
Expand Down
6 changes: 6 additions & 0 deletions tests/phpunit/tests/comment/getCommentAuthorUrlLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ class Tests_Comment_GetCommentAuthorUrlLink extends WP_UnitTestCase {

protected static $comments = array();

public function tear_down() {
unset( $GLOBALS['comment'] );

parent::tear_down();
}

public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
unset( $GLOBALS['comment'] );

Expand Down
Loading