You are here

public function VideoEmbedIFrameTest::testVideoEmbedIframe in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/VideoEmbedIFrameTest.php \Drupal\Tests\video_embed_field\Kernel\VideoEmbedIFrameTest::testVideoEmbedIframe()

Test the video embed iframe renders correctly.

@dataProvider videoEmbedIframeTestCases

File

tests/src/Kernel/VideoEmbedIFrameTest.php, line 106

Class

VideoEmbedIFrameTest
Test that the iframe element works.

Namespace

Drupal\Tests\video_embed_field\Kernel

Code

public function testVideoEmbedIframe($renderable, $markup) {
  $this
    ->assertEquals($markup, trim($this->container
    ->get('renderer')
    ->renderRoot($renderable)));
}