mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-28486 - tests: fix broken youtube tests
This commit is contained in:
parent
b84be095b7
commit
3539c2f2bf
@ -335,13 +335,13 @@ class medialib_testcase extends advanced_testcase {
|
||||
// Format: youtube playlist.
|
||||
$url = new moodle_url('http://www.youtube.com/view_play_list?p=PL6E18E2927047B662');
|
||||
$t = $renderer->embed_url($url);
|
||||
$this->assertTrue(self::str_contains($t, '</object>'));
|
||||
$this->assertTrue(self::str_contains($t, '</iframe>'));
|
||||
$url = new moodle_url('http://www.youtube.com/playlist?list=PL6E18E2927047B662');
|
||||
$t = $renderer->embed_url($url);
|
||||
$this->assertTrue(self::str_contains($t, '</object>'));
|
||||
$this->assertTrue(self::str_contains($t, '</iframe>'));
|
||||
$url = new moodle_url('http://www.youtube.com/p/PL6E18E2927047B662');
|
||||
$t = $renderer->embed_url($url);
|
||||
$this->assertTrue(self::str_contains($t, '</object>'));
|
||||
$this->assertTrue(self::str_contains($t, '</iframe>'));
|
||||
|
||||
// Format: vimeo.
|
||||
$url = new moodle_url('http://vimeo.com/1176321');
|
||||
|
Loading…
x
Reference in New Issue
Block a user