MDL-28486 - tests: fix broken youtube tests

This commit is contained in:
Dan Poltawski 2012-08-06 09:25:24 +08:00
parent b84be095b7
commit 3539c2f2bf

View File

@ -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');