Make WordPress Core

Changeset 53864


Ignore:
Timestamp:
08/08/2022 11:22:43 PM (20 months ago)
Author:
azaozz
Message:

Build/Test Tools: Add @covers tags to the import tests.

Props pbearne, jrf, hellofromTonya, patopaiar, ironprogrammer, antonvlasenko, SergeyBiryukov, costdev.
See #39265.

Location:
trunk/tests/phpunit/tests/import
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/import/import.php

    r52010 r53864  
    3434    }
    3535
     36    /**
     37     * @covers WP_Import::import
     38     */
    3639    public function test_small_import() {
    3740        global $wpdb;
     
    202205    }
    203206
     207    /**
     208     * @covers WP_Import::import
     209     */
    204210    public function test_double_import() {
    205211        $authors = array(
     
    243249    }
    244250
     251    /**
     252     * @covers ::get_importers
     253     */
    245254    public function test_ordering_of_importers() {
    246255        global $wp_importers;
     
    268277    /**
    269278     * @ticket 21007
     279     *
     280     * @covers WP_Import::import
    270281     */
    271282    public function test_slashes_should_not_be_stripped() {
  • trunk/tests/phpunit/tests/import/parser.php

    r52010 r53864  
    2525    }
    2626
     27    /**
     28     * @covers WXR_Parser_SimpleXML::parse
     29     * @covers WXR_Parser_XML::parse
     30     */
    2731    public function test_malformed_wxr() {
    2832        $file = DIR_TESTDATA . '/export/malformed.xml';
     
    3741    }
    3842
     43    /**
     44     * @covers WXR_Parser_SimpleXML::parse
     45     * @covers WXR_Parser_XML::parse
     46     * @covers WXR_Parser_Regex::parse
     47     */
    3948    public function test_invalid_wxr() {
    4049        $f1 = DIR_TESTDATA . '/export/missing-version-tag.xml';
     
    5160    }
    5261
     62    /**
     63     * @covers WXR_Parser_SimpleXML::parse
     64     * @covers WXR_Parser_XML::parse
     65     * @covers WXR_Parser_Regex::parse
     66     */
    5367    public function test_wxr_version_1_1() {
    5468        $file = DIR_TESTDATA . '/export/valid-wxr-1.1.xml';
     
    144158    }
    145159
     160    /**
     161     * @covers WXR_Parser_SimpleXML::parse
     162     * @covers WXR_Parser_XML::parse
     163     * @covers WXR_Parser_Regex::parse
     164     */
    146165    public function test_wxr_version_1_0() {
    147166        $file = DIR_TESTDATA . '/export/valid-wxr-1.0.xml';
     
    237256     *
    238257     * @link https://core.trac.wordpress.org/ticket/15203
     258     *
     259     * @covers WXR_Parser_SimpleXML::parse
     260     * @covers WXR_Parser_XML::parse
     261     * @covers WXR_Parser_Regex::parse
    239262     */
    240263    public function test_escaped_cdata_closing_sequence() {
     
    270293     * Ensure that the regex parser can still parse invalid CDATA blocks (i.e. those
    271294     * with "]]>" unescaped within a CDATA section).
     295     *
     296     * @covers WXR_Parser_Regex::parse
    272297     */
    273298    public function test_unescaped_cdata_closing_sequence() {
  • trunk/tests/phpunit/tests/import/postmeta.php

    r52010 r53864  
    55/**
    66 * @group import
     7 *
     8 * @covers WP_Import::import
    79 */
    810class Tests_Import_Postmeta extends WP_Import_UnitTestCase {
Note: See TracChangeset for help on using the changeset viewer.