예제 #1
0
 /**
  * @return array
  */
 protected function getExtensions()
 {
     $childType = new ChartSettingsType($this->configProvider);
     $collectionType = new ChartSettingsCollectionType();
     return [new PreloadedExtension([$childType->getName() => $childType, $collectionType->getName() => $collectionType], [])];
 }
 /**
  * @return array
  */
 protected function getExtensions()
 {
     $configProvider = $this->getMockBuilder('Oro\\Bundle\\ChartBundle\\Model\\ConfigProvider')->disableOriginalConstructor()->getMock();
     $childType = new ChartSettingsType($configProvider);
     return [new PreloadedExtension([$childType->getName() => $childType], [])];
 }