Make WordPress Core


Ignore:
Timestamp:
10/10/2020 01:37:18 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Tests: Update third-party video URLs in unit tests with more permanent videos.

This brings some consistency to the YouTube and Vimeo URLs used for tests:

  • For YouTube, use the video of WordPress 5.0 release.
  • For Vimeo, use one of the official test videos.

Props garrett-eclipse, dd32.
Fixes #51487. See #meta5467.

File:
1 edited

Legend:

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

    r48937 r49117  
    214214
    215215    function test_positional_atts_url() {
    216         $out = do_shortcode( '[test-shortcode-tag http://www.youtube.com/watch?v=eBGIQ7ZuuiU]' );
     216        $out = do_shortcode( '[test-shortcode-tag https://www.youtube.com/watch?v=72xdCU__XCk]' );
    217217        $this->assertSame( '', $out );
    218         $this->assertSame( array( 0 => 'http://www.youtube.com/watch?v=eBGIQ7ZuuiU' ), $this->atts );
     218        $this->assertSame( array( 0 => 'https://www.youtube.com/watch?v=72xdCU__XCk' ), $this->atts );
    219219        $this->assertSame( 'test-shortcode-tag', $this->tagname );
    220220    }
Note: See TracChangeset for help on using the changeset viewer.