Make WordPress Core


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

    r49085 r49117  
    935935        $actual = wp_video_shortcode(
    936936            array(
    937                 'src' => 'https://www.youtube.com/watch?v=i_cVJgIz_Cs&feature=youtu.be',
     937                'src' => 'https://www.youtube.com/watch?v=72xdCU__XCk&feature=youtu.be',
    938938            )
    939939        );
     
    949949        $actual = wp_video_shortcode(
    950950            array(
    951                 'src' => 'http://www.youtube.com/watch?v=i_cVJgIz_Cs',
    952             )
    953         );
    954 
    955         $this->assertContains( 'src="https://www.youtube.com/watch?v=i_cVJgIz_Cs', $actual );
     951                'src' => 'http://www.youtube.com/watch?v=72xdCU__XCk',
     952            )
     953        );
     954
     955        $this->assertContains( 'src="https://www.youtube.com/watch?v=72xdCU__XCk', $actual );
    956956    }
    957957
     
    963963        $actual = wp_video_shortcode(
    964964            array(
    965                 'src' => 'http://vimeo.com/190372437?blah=meh',
    966             )
    967         );
    968 
    969         $this->assertContains( 'src="https://vimeo.com/190372437', $actual );
     965                'src' => 'http://vimeo.com/76979871?blah=meh',
     966            )
     967        );
     968
     969        $this->assertContains( 'src="https://vimeo.com/76979871', $actual );
    970970        $this->assertNotContains( 'blah=meh', $actual );
    971971    }
     
    978978        $actual = wp_video_shortcode(
    979979            array(
    980                 'src' => 'http://vimeo.com/190372437',
    981             )
    982         );
    983 
    984         $this->assertContains( 'src="https://vimeo.com/190372437?loop=0', $actual );
     980                'src' => 'http://vimeo.com/76979871',
     981            )
     982        );
     983
     984        $this->assertContains( 'src="https://vimeo.com/76979871?loop=0', $actual );
    985985    }
    986986
     
    992992        $actual = wp_video_shortcode(
    993993            array(
    994                 'src'  => 'http://vimeo.com/190372437',
     994                'src'  => 'http://vimeo.com/76979871',
    995995                'loop' => true,
    996996            )
    997997        );
    998998
    999         $this->assertContains( 'src="https://vimeo.com/190372437?loop=1', $actual );
     999        $this->assertContains( 'src="https://vimeo.com/76979871?loop=1', $actual );
    10001000    }
    10011001
Note: See TracChangeset for help on using the changeset viewer.