Skip to content

Commit

Permalink
Use coversDefaultClass in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Jan 10, 2025
1 parent 4bb68cb commit 70b6204
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@

/**
* @group speculative-loading
* @coversDefaultClass WP_URL_Pattern_Prefixer
*/
class Tests_Speculative_Loading_wpUrlPatternPrefixer extends WP_UnitTestCase {

/**
* Tests prefixing URL path patterns with a consistent demo context.
*
* @ticket 62503
* @covers WP_URL_Pattern_Prefixer::prefix_path_pattern
* @covers ::prefix_path_pattern
* @dataProvider data_prefix_path_pattern
*/
public function test_prefix_path_pattern( string $base_path, string $path_pattern, string $expected ) {
Expand Down Expand Up @@ -49,7 +50,7 @@ public function data_prefix_path_pattern(): array {
* Tests the values of the default URL pattern contexts.
*
* @ticket 62503
* @covers WP_URL_Pattern_Prefixer::get_default_contexts
* @covers ::get_default_contexts
*/
public function test_get_default_contexts() {
$contexts = WP_URL_Pattern_Prefixer::get_default_contexts();
Expand All @@ -64,7 +65,7 @@ public function test_get_default_contexts() {
* Tests the values of the default URL pattern contexts when using subdirectories.
*
* @ticket 62503
* @covers WP_URL_Pattern_Prefixer::get_default_contexts
* @covers ::get_default_contexts
* @dataProvider data_default_contexts_with_subdirectories
*/
public function test_get_default_contexts_with_subdirectories( string $context, string $unescaped, string $expected ) {
Expand Down

0 comments on commit 70b6204

Please sign in to comment.