public function testGetDefaultHelperReturnsDefinedDefaultHelper()
 {
     $helperA = $this->prophesize(InstanceHelper::class);
     $helperB = $this->prophesize(InstanceHelper::class);
     $helperRegistry = new InstanceHelperRegistry();
     $helperRegistry->addHelper('helperA', $helperA->reveal());
     $helperRegistry->addHelper('helperB', $helperB->reveal());
     $helperRegistry->setDefaultHelper('helperB');
     $this->assertSame($helperB->reveal(), $helperRegistry->getDefaultHelper());
 }
 public function entryContainsPdfDocuments(FeedEntry $feedEntry, $name = null)
 {
     $feedHelper = $this->helpers->getHelper($name)->getFeedHelper();
     return $feedHelper->entryContainsPdfDocuments($feedEntry);
 }
 public function getRecordMultiCaption(Record $record, $field, $locale = null, $instanceName = null)
 {
     $metadataHelper = $this->helpers->getHelper($instanceName)->getMetadataHelper();
     return $metadataHelper->getRecordMultiField($record, $field, $locale);
 }