Make WordPress Core


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

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

See #52625

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.