You are here

public function FileDownloadLinkMediaApplicableTest::testApplicableFile in File Download Link 8

This should be applicable for file media.

File

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

Class

FileDownloadLinkMediaApplicableTest
Class for testing file_download_link_media formatter.

Namespace

Drupal\Tests\file_download_link\Kernel

Code

public function testApplicableFile() {
  $field_definition = $this->node
    ->getFieldDefinition('field_file');
  Assert::assertTrue(FileDownloadLinkMedia::isApplicable($field_definition));
}