mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Build/Test Tools: Add and fix @covers tags to the attachments and block-supports test groups.
Props pbeane, hellofromTonya, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev. See #39265. git-svn-id: https://develop.svn.wordpress.org/trunk@53680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
19768866db
commit
599b7146ca
@ -4,6 +4,8 @@
|
||||
* @group attachment
|
||||
* @group slashes
|
||||
* @ticket 21767
|
||||
*
|
||||
* @covers ::wp_insert_attachment
|
||||
*/
|
||||
class Tests_Attachment_Slashes extends WP_UnitTestCase {
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_apply_border_support
|
||||
*/
|
||||
class Test_Block_Supports_Border extends WP_UnitTestCase {
|
||||
/**
|
||||
@ -21,8 +23,6 @@ class Test_Block_Supports_Border extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_border_support
|
||||
*/
|
||||
function test_border_color_slug_with_numbers_is_kebab_cased_properly() {
|
||||
$this->test_block_name = 'test/border-color-slug-with-numbers-is-kebab-cased-properly';
|
||||
@ -72,8 +72,6 @@ class Test_Block_Supports_Border extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_border_support
|
||||
*/
|
||||
function test_border_with_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/border-with-skipped-serialization-block-supports';
|
||||
@ -118,8 +116,6 @@ class Test_Block_Supports_Border extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_border_support
|
||||
*/
|
||||
function test_radius_with_individual_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/radius-with-individual-skipped-serialization-block-supports';
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_apply_colors_support
|
||||
*/
|
||||
class Tests_Block_Supports_Colors extends WP_UnitTestCase {
|
||||
/**
|
||||
@ -21,8 +23,6 @@ class Tests_Block_Supports_Colors extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_apply_colors_support
|
||||
*/
|
||||
function test_color_slugs_with_numbers_are_kebab_cased_properly() {
|
||||
$this->test_block_name = 'test/color-slug-with-numbers';
|
||||
@ -67,8 +67,6 @@ class Tests_Block_Supports_Colors extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_colors_support
|
||||
*/
|
||||
function test_color_with_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/color-with-skipped-serialization-block-supports';
|
||||
@ -110,8 +108,6 @@ class Tests_Block_Supports_Colors extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_colors_support
|
||||
*/
|
||||
function test_gradient_with_individual_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/gradient-with-individual-skipped-serialization-block-support';
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_render_elements_support
|
||||
*/
|
||||
class Tests_Block_Supports_Elements extends WP_UnitTestCase {
|
||||
/**
|
||||
@ -17,8 +19,6 @@ class Tests_Block_Supports_Elements extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test wp_render_elements_support() with a simple paragraph and link color preset.
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_render_elements_support
|
||||
*/
|
||||
public function test_simple_paragraph_link_color() {
|
||||
$result = self::make_unique_id_one(
|
||||
@ -49,8 +49,6 @@ class Tests_Block_Supports_Elements extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test wp_render_elements_support() with a paragraph containing a class.
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_render_elements_support
|
||||
*/
|
||||
public function test_class_paragraph_link_color() {
|
||||
$result = self::make_unique_id_one(
|
||||
@ -82,8 +80,6 @@ class Tests_Block_Supports_Elements extends WP_UnitTestCase {
|
||||
/**
|
||||
* Test wp_render_elements_support() with a paragraph containing a anchor.
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_render_elements_support
|
||||
*/
|
||||
public function test_anchor_paragraph_link_color() {
|
||||
$result = self::make_unique_id_one(
|
||||
|
||||
@ -13,6 +13,8 @@
|
||||
* @since 6.0.0
|
||||
*
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_restore_image_outer_container
|
||||
*/
|
||||
class Test_Block_Supports_Layout extends WP_UnitTestCase {
|
||||
function set_up() {
|
||||
@ -53,8 +55,6 @@ class Test_Block_Supports_Layout extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_restore_image_outer_container
|
||||
*/
|
||||
function test_outer_container_not_restored_for_non_aligned_image_block_with_non_themejson_theme() {
|
||||
// The "default" theme doesn't have theme.json support.
|
||||
@ -71,8 +71,6 @@ class Test_Block_Supports_Layout extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_restore_image_outer_container
|
||||
*/
|
||||
function test_outer_container_restored_for_aligned_image_block_with_non_themejson_theme() {
|
||||
// The "default" theme doesn't have theme.json support.
|
||||
@ -90,8 +88,6 @@ class Test_Block_Supports_Layout extends WP_UnitTestCase {
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_restore_image_outer_container
|
||||
*
|
||||
* @dataProvider data_block_image_html_restored_outer_container
|
||||
*
|
||||
* @param string $block_image_html The block image HTML passed to `wp_restore_image_outer_container`.
|
||||
@ -149,8 +145,6 @@ class Test_Block_Supports_Layout extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_restore_image_outer_container
|
||||
*/
|
||||
function test_outer_container_not_restored_for_aligned_image_block_with_themejson_theme() {
|
||||
switch_theme( 'block-theme' );
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_apply_spacing_support
|
||||
*/
|
||||
class Test_Block_Supports_Spacing extends WP_UnitTestCase {
|
||||
/**
|
||||
@ -21,8 +23,6 @@ class Test_Block_Supports_Spacing extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_spacing_support
|
||||
*/
|
||||
function test_spacing_style_is_applied() {
|
||||
$this->test_block_name = 'test/spacing-style-is-applied';
|
||||
@ -71,8 +71,6 @@ class Test_Block_Supports_Spacing extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_spacing_support
|
||||
*/
|
||||
function test_spacing_with_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/spacing-with-skipped-serialization-block-supports';
|
||||
@ -120,8 +118,6 @@ class Test_Block_Supports_Spacing extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_spacing_support
|
||||
*/
|
||||
function test_margin_with_individual_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/margin-with-individual-skipped-serialization-block-supports';
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* @group block-supports
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
/**
|
||||
@ -21,8 +23,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_font_size_slug_with_numbers_is_kebab_cased_properly() {
|
||||
$this->test_block_name = 'test/font-size-slug-with-numbers';
|
||||
@ -54,8 +54,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
}
|
||||
/**
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_font_family_with_legacy_inline_styles_using_a_value() {
|
||||
$this->test_block_name = 'test/font-family-with-inline-styles-using-value';
|
||||
@ -87,8 +85,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_typography_with_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/typography-with-skipped-serialization-block-supports';
|
||||
@ -133,8 +129,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
|
||||
/**
|
||||
* @ticket 55505
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_letter_spacing_with_individual_skipped_serialization_block_supports() {
|
||||
$this->test_block_name = 'test/letter-spacing-with-individua-skipped-serialization-block-supports';
|
||||
@ -168,8 +162,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
}
|
||||
/**
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_font_family_with_legacy_inline_styles_using_a_css_var() {
|
||||
$this->test_block_name = 'test/font-family-with-inline-styles-using-css-var';
|
||||
@ -200,8 +192,6 @@ class Tests_Block_Supports_Typography extends WP_UnitTestCase {
|
||||
}
|
||||
/**
|
||||
* @ticket 54337
|
||||
*
|
||||
* @covers ::wp_apply_typography_support
|
||||
*/
|
||||
function test_font_family_with_class() {
|
||||
$this->test_block_name = 'test/font-family-with-class';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user