diff --git a/tests/test-permalink.php b/tests/test-permalink.php index f8bae2e..4580353 100644 --- a/tests/test-permalink.php +++ b/tests/test-permalink.php @@ -50,6 +50,11 @@ public function test_permalink( $structure ) { $wp_rewrite->flush_rules(); $this->assertEquals( $id, url_to_postid( get_permalink( $id ) ) ); + $this->go_to( get_permalink( $id ) ); + $this->assertQueryTrue( 'is_single', 'is_singular' ); + $this->go_to( add_query_arg( 'page', 2, get_permalink( $id ) ) ); + $this->assertQueryTrue( 'is_single', 'is_singular' ); + $this->assertEquals( get_query_var( "page"), 2 ); }