Permalink
Browse files

MDL-28486 - tests: fix broken youtube tests

  • Loading branch information...
danpoltawski committed Aug 6, 2012
1 parent b84be09 commit 3539c2f2bf679e44797fc2aa4fb16fe9624b71fb
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tests/medialib_test.php
@@ -335,13 +335,13 @@ public function test_embed_url_other_formats() {
// 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');

0 comments on commit 3539c2f

Please sign in to comment.