public function FileDownloadLinkMediaApplicableTest::testApplicableImage in File Download Link 8
This should be applicable for image media.
File
- tests/
src/ Kernel/ FileDownloadLinkMediaApplicableTest.php, line 69
Class
- FileDownloadLinkMediaApplicableTest
- Class for testing file_download_link_media formatter.
Namespace
Drupal\Tests\file_download_link\KernelCode
public function testApplicableImage() {
$field_definition = $this->node
->getFieldDefinition('field_image');
Assert::assertTrue(FileDownloadLinkMedia::isApplicable($field_definition));
}