コード例 #1
0
 /**
  * {@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;
 }
コード例 #2
0
 public function testCreate()
 {
     $object = $this->factory->create($this->marketingList);
     $this->assertInstanceOf('OroCRM\\Bundle\\MailChimpBundle\\Model\\Segment\\ColumnDefinitionList', $object);
 }