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