Make WordPress Core


Ignore:
Timestamp:
10/10/2020 01:37:18 AM (3 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/oembed/filterResult.php

    r48937 r49117  
    88        $html = '<p></p><iframe onload="alert(1)"></iframe>';
    99
    10         $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=dQw4w9WgXcQ' );
     10        $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=72xdCU__XCk' );
    1111
    1212        $this->assertSame( $html, $actual );
Note: See TracChangeset for help on using the changeset viewer.