Skip to content

Commit

Permalink
Fix up tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 18, 2021
1 parent 6a68df3 commit cd91ebd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/MediaEmbedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@ public function testYoutube() {
$this->assertSame('//img.youtube.com/vi/h9Pu4bZqWyg/0.jpg', $img);

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

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

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

$code = $Object->getEmbedCode();
$this->assertNotContains('<iframe', $code);
$this->assertStringNotContainsString('<iframe', $code);
}

/**
Expand Down Expand Up @@ -253,7 +253,7 @@ public function testMatterport() {
$this->assertSame('Zh14WDtkjdC', $id);

$code = $Object->getEmbedCode();
$this->assertContains('<iframe', $code);
$this->assertStringContainsString('<iframe', $code);
}

/**
Expand Down

0 comments on commit cd91ebd

Please sign in to comment.