Make WordPress Core

Changeset 50448


Ignore:
Timestamp:
02/27/2021 02:36:22 PM (3 years ago)
Author:
johnbillion
Message:

Build/Test Tools: Add some more tests that perform HTTP requests to the external-http test group.

See #52625

Location:
trunk/tests/phpunit/tests
Files:
2 edited

Legend:

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

    r50132 r50448  
    281281    /**
    282282     * @ticket 23776
     283     *
     284     * @group external-http
    283285     */
    284286    function test_autoembed_no_paragraphs_around_urls() {
     
    12811283    /**
    12821284     * @ticket 33016
     1285     *
     1286     * @group external-http
    12831287     */
    12841288    function test_multiline_comment_with_embeds() {
     
    13241328    /**
    13251329     * @ticket 33016
     1330     *
     1331     * @group external-http
    13261332     */
    13271333    function test_oembed_explicit_media_link() {
  • trunk/tests/phpunit/tests/oembed/WpEmbed.php

    r48939 r50448  
    106106    }
    107107
     108    /**
     109     * @group external-http
     110     */
    108111    public function test_autoembed_should_do_nothing_without_matching_handler() {
    109112        $content = "\nhttp://example.com/embed/foo\n";
     
    113116    }
    114117
     118    /**
     119     * @group external-http
     120     */
    115121    public function test_autoembed_should_return_modified_content() {
    116122        $handle   = __FUNCTION__;
     
    318324    }
    319325
     326    /**
     327     * @group external-http
     328     */
    320329    public function test_shortcode_should_get_url_from_src_attribute() {
    321330        $url    = 'http://example.com/embed/foo';
     
    325334    }
    326335
     336    /**
     337     * @group external-http
     338     */
    327339    public function test_shortcode_should_return_empty_string_for_missing_url() {
    328340        $this->assertEmpty( $this->wp_embed->shortcode( array() ) );
    329341    }
    330342
     343    /**
     344     * @group external-http
     345     */
    331346    public function test_shortcode_should_make_link_for_unknown_url() {
    332347        $url    = 'http://example.com/embed/foo';
     
    336351    }
    337352
     353    /**
     354     * @group external-http
     355     */
    338356    public function test_run_shortcode_url_only() {
    339357        $url    = 'http://example.com/embed/foo';
Note: See TracChangeset for help on using the changeset viewer.