/** * {@inheritdoc} */ public function provideExtendedMergeVars(MarketingList $marketingList) { $vars = $this->columnDefinitionListFactory->create($marketingList)->getColumns(); foreach ($this->providers as $provider) { $currentProviderVars = $provider->provideExtendedMergeVars($marketingList); if (!empty($currentProviderVars)) { $vars = array_merge($vars, $currentProviderVars); } } return $vars; }
public function testCreate() { $object = $this->factory->create($this->marketingList); $this->assertInstanceOf('OroCRM\\Bundle\\MailChimpBundle\\Model\\Segment\\ColumnDefinitionList', $object); }