Esempio n. 1
0
 /**
  * @param array $rendererData
  * @param array $getData
  * @param bool $result
  * @dataProvider getRendererOptionsDataProvider
  */
 public function testAddGetRendererOptions($rendererData, $getData, $result)
 {
     $this->assertSame(
         $this->model,
         $this->model->addAdjustableRenderer(
             $rendererData['namespace'],
             $rendererData['static_type'],
             $rendererData['dynamic_type'],
             $rendererData['type'],
             $rendererData['template'],
             $rendererData['data']
         )
     );
     $this->assertSame(
         $result,
         $this->model->getRendererOptions($getData['namespace'], $getData['static_type'], $getData['dynamic_type'])
     );
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function getRendererOptions($namespace, $staticType, $dynamicType)
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getRendererOptions');
     if (!$pluginInfo) {
         return parent::getRendererOptions($namespace, $staticType, $dynamicType);
     } else {
         return $this->___callPlugins('getRendererOptions', func_get_args(), $pluginInfo);
     }
 }