diff --git a/tests/phpunit/tests/dependencies/styles.php b/tests/phpunit/tests/dependencies/styles.php index 90c4e59fccdee..626a5861eb782 100644 --- a/tests/phpunit/tests/dependencies/styles.php +++ b/tests/phpunit/tests/dependencies/styles.php @@ -607,6 +607,8 @@ public function test_wp_edit_blocks_depends_on_wp_theme_first() { } /** + * @group assets + * * @ticket 58394 * @ticket 63887 * @@ -745,6 +747,8 @@ public function test_wp_maybe_inline_styles_dequeue_styles() { * wp_filesize should be only be called once, as on the second run of wp_maybe_inline_styles, * src will be set to false and filesize will not be requested. * + * @group assets + * * @ticket 58394 * * @covers ::wp_maybe_inline_styles @@ -853,6 +857,8 @@ static function ( $size, $path ) use ( $style_path ) { } /** + * @group assets + * * @ticket 64447 * * @covers ::wp_maybe_inline_styles diff --git a/tests/phpunit/tests/oembed/template.php b/tests/phpunit/tests/oembed/template.php index bce26bbcd8ddd..5996d69b3c3c1 100644 --- a/tests/phpunit/tests/oembed/template.php +++ b/tests/phpunit/tests/oembed/template.php @@ -19,6 +19,9 @@ public function tear_down() { $wp_scripts = null; } + /** + * @group assets + */ public function test_oembed_output_post() { $user = self::factory()->user->create_and_get( array( @@ -51,6 +54,9 @@ public function test_oembed_output_post() { $this->assertStringContainsString( 'Hello World', $actual ); } + /** + * @group assets + */ public function test_oembed_output_post_with_thumbnail() { $post_id = self::factory()->post->create( array( @@ -84,6 +90,9 @@ public function test_oembed_output_post_with_thumbnail() { $this->assertStringContainsString( 'canola.jpg', $actual ); } + /** + * @group assets + */ public function test_oembed_output_404() { $this->go_to( home_url( '/?p=123&embed=true' ) ); $GLOBALS['wp_query']->query_vars['embed'] = true; @@ -99,6 +108,9 @@ public function test_oembed_output_404() { $this->assertStringContainsString( 'That embed cannot be found.', $actual ); } + /** + * @group assets + */ public function test_oembed_output_attachment() { $post = self::factory()->post->create_and_get(); $file = DIR_TESTDATA . '/images/canola.jpg'; @@ -128,6 +140,9 @@ public function test_oembed_output_attachment() { $this->assertStringContainsString( 'canola.jpg', $actual ); } + /** + * @group assets + */ public function test_oembed_output_draft_post() { $post_id = self::factory()->post->create( array( @@ -151,6 +166,9 @@ public function test_oembed_output_draft_post() { $this->assertStringContainsString( 'That embed cannot be found.', $actual ); } + /** + * @group assets + */ public function test_oembed_output_scheduled_post() { $post_id = self::factory()->post->create( array( @@ -175,6 +193,9 @@ public function test_oembed_output_scheduled_post() { $this->assertStringContainsString( 'That embed cannot be found.', $actual ); } + /** + * @group assets + */ public function test_oembed_output_private_post() { $post_id = self::factory()->post->create( array( @@ -198,6 +219,9 @@ public function test_oembed_output_private_post() { $this->assertStringContainsString( 'That embed cannot be found.', $actual ); } + /** + * @group assets + */ public function test_oembed_output_private_post_with_permissions() { $user_id = self::factory()->user->create( array( 'role' => 'editor' ) ); wp_set_current_user( $user_id ); @@ -286,6 +310,9 @@ public function test_get_post_embed_html_non_existent_post() { $this->assertFalse( get_post_embed_html( 200, 200 ) ); } + /** + * @group assets + */ public function test_get_post_embed_html() { $post_id = self::factory()->post->create(); $title = esc_attr( diff --git a/tests/phpunit/tests/script-modules/wpScriptModules.php b/tests/phpunit/tests/script-modules/wpScriptModules.php index 01c58898dcb19..d7fe668967c2c 100644 --- a/tests/phpunit/tests/script-modules/wpScriptModules.php +++ b/tests/phpunit/tests/script-modules/wpScriptModules.php @@ -1860,6 +1860,8 @@ public function test_default_script_modules() { * otherwise the import map points to a non-existent file under * SCRIPT_DEBUG. The exceptions below must mirror that special case. * + * @group assets + * * @ticket 65664 * * @covers ::wp_default_script_modules diff --git a/tests/phpunit/tests/shortcode.php b/tests/phpunit/tests/shortcode.php index 0e6566a636e36..c14a17765075e 100644 --- a/tests/phpunit/tests/shortcode.php +++ b/tests/phpunit/tests/shortcode.php @@ -769,6 +769,8 @@ public function data_whole_posts() { /** * Ensure the shortcode attribute regex is the same in both the PHP and JS implementations. * + * @group assets + * * @ticket 34191 * @ticket 51734 */ diff --git a/tests/phpunit/tests/template.php b/tests/phpunit/tests/template.php index a79702554dc64..af8f392500dde 100644 --- a/tests/phpunit/tests/template.php +++ b/tests/phpunit/tests/template.php @@ -1950,6 +1950,8 @@ static function ( $path, $file ) { /** * Tests that wp_hoist_late_printed_styles() adds a placeholder for delayed CSS, then removes it and adds all CSS to the head including late enqueued styles. * + * @group assets + * * @ticket 64099 * @ticket 64354 * @covers ::wp_load_classic_theme_block_styles_on_demand diff --git a/tests/phpunit/tests/view-transitions/wpEnqueueViewTransitionsAdminCss.php b/tests/phpunit/tests/view-transitions/wpEnqueueViewTransitionsAdminCss.php index 0e977e69606f9..874bd11bb70fb 100644 --- a/tests/phpunit/tests/view-transitions/wpEnqueueViewTransitionsAdminCss.php +++ b/tests/phpunit/tests/view-transitions/wpEnqueueViewTransitionsAdminCss.php @@ -40,6 +40,8 @@ public function test_hook() { /** * Tests that the admin view transitions style handle includes the inline CSS. * + * @group assets + * * @ticket 64470 * * @covers ::wp_get_view_transitions_admin_css @@ -55,6 +57,8 @@ public function test_inline_css_included() { /** * Tests enqueuing admin view transitions CSS. * + * @group assets + * * @ticket 64470 */ public function test_wp_enqueue_view_transitions_admin_css() {