Skip to content
Browse files

MDL-28486 - tests: fix broken youtube tests

  • Loading branch information...
1 parent f52c5f8 commit d939a4dec8c3c74ef4969329f4b0a382f58a83de @danpoltawski danpoltawski committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tests/medialib_test.php
View
6 lib/tests/medialib_test.php
@@ -338,13 +338,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 d939a4d

Please sign in to comment.
Something went wrong with that request. Please try again.