You are here

public function FilterTest::testVideoFilter in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 modules/video_embed_wysiwyg/tests/src/Kernel/FilterTest.php \Drupal\Tests\video_embed_wysiwyg\Kernel\FilterTest::testVideoFilter()

Test the video ouput.

@dataProvider videoFilterTestCases

File

modules/video_embed_wysiwyg/tests/src/Kernel/FilterTest.php, line 96

Class

FilterTest
A test for the filter.

Namespace

Drupal\Tests\video_embed_wysiwyg\Kernel

Code

public function testVideoFilter($content, $expected) {
  if ($expected === FALSE) {
    $expected = $content;
  }
  $filtered_markup = $this
    ->stripWhitespace(check_markup($content, 'test_format'));
  $this
    ->assertEquals($expected, $filtered_markup);
}