Skip to content

Commit

Permalink
55955: Fixing lint errors (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelAxcar committed Oct 27, 2022
1 parent 3a41c9a commit ff49093
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions tests/phpunit/tests/canonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,18 @@ public function test_utf8_query_keys_canonical() {
*/
public function test_feed_canonical_with_not_exists_query() {
// Set a NOT EXISTS tax_query on the global query.
$global_query = $GLOBALS['wp_query'];
$GLOBALS['wp_query'] = new WP_Query( array(
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'operator' => 'NOT EXISTS',
$global_query = $GLOBALS['wp_query'];
$GLOBALS['wp_query'] = new WP_Query(
array(
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'operator' => 'NOT EXISTS',
),
),
),
) );
)
);

$url = redirect_canonical( get_term_feed_link( self::$terms['/category/parent/'] ), false );
$this->assertNull( $url );
Expand Down

0 comments on commit ff49093

Please sign in to comment.