Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-28486 - tests: fix broken youtube tests

  • Loading branch information...
commit d939a4dec8c3c74ef4969329f4b0a382f58a83de 1 parent f52c5f8
@danpoltawski danpoltawski authored
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');
Please sign in to comment.
Something went wrong with that request. Please try again.