Skip to content

Commit cd91ebd

Browse files
committed
Fix up tests.
1 parent 6a68df3 commit cd91ebd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/MediaEmbedTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ public function testYoutube() {
193193
$this->assertSame('//img.youtube.com/vi/h9Pu4bZqWyg/0.jpg', $img);
194194

195195
$code = $Object->getEmbedCode();
196-
$this->assertContains('<iframe', $code);
196+
$this->assertStringContainsString('<iframe', $code);
197197

198198
$src = $Object->getEmbedSrc();
199-
$this->assertContains('//www.youtube.com/embed/h9Pu4bZqWyg', $src);
199+
$this->assertStringContainsString('//www.youtube.com/embed/h9Pu4bZqWyg', $src);
200200
}
201201

202202
/**
@@ -208,7 +208,7 @@ public function testYoutubeWithoutIframe() {
208208
$this->assertInstanceOf(MediaObject::class, $Object);
209209

210210
$code = $Object->getEmbedCode();
211-
$this->assertNotContains('<iframe', $code);
211+
$this->assertStringNotContainsString('<iframe', $code);
212212
}
213213

214214
/**
@@ -253,7 +253,7 @@ public function testMatterport() {
253253
$this->assertSame('Zh14WDtkjdC', $id);
254254

255255
$code = $Object->getEmbedCode();
256-
$this->assertContains('<iframe', $code);
256+
$this->assertStringContainsString('<iframe', $code);
257257
}
258258

259259
/**

0 commit comments

Comments
 (0)