You are here

public function FileDownloadLinkMediaApplicableTest::testApplicableOembed in File Download Link 8

This should not work for oembed.

File

tests/src/Kernel/FileDownloadLinkMediaApplicableTest.php, line 93

Class

FileDownloadLinkMediaApplicableTest
Class for testing file_download_link_media formatter.

Namespace

Drupal\Tests\file_download_link\Kernel

Code

public function testApplicableOembed() {
  $field_definition = $this->node
    ->getFieldDefinition('field_oembed');
  Assert::assertFalse(FileDownloadLinkMedia::isApplicable($field_definition));
}