Skip to content

Commit

Permalink
Add more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Oct 9, 2024
1 parent 4aa45bd commit 38d1d42
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/phpunit/tests/canonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ public function data_canonical() {
),

// Categories & intersections with other vars.
array(
'/category/?tag=post-formats',
array(
'url' => '/category/?tag=post-formats',
'qv' => array(
'category_name' => '',
'tag' => 'post-formats',
),
),
61957,
),
array(
'/category/uncategorized/?tag=post-formats',
array(
Expand All @@ -176,6 +187,7 @@ public function data_canonical() {
),

// Taxonomies with extra query vars.
array( '/category/page/1/?test=one%20two', '/category/?test=one%20two', 61957 ), // Extra query vars should stay encoded.
array( '/category/cat-a/page/1/?test=one%20two', '/category/cat-a/?test=one%20two', 18086 ), // Extra query vars should stay encoded.

// Categories with dates.
Expand Down

0 comments on commit 38d1d42

Please sign in to comment.