Exemplo 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'])
     );
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function addAdjustableRenderer($namespace, $staticType, $dynamicType, $type, $template, $data = array())
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'addAdjustableRenderer');
     if (!$pluginInfo) {
         return parent::addAdjustableRenderer($namespace, $staticType, $dynamicType, $type, $template, $data);
     } else {
         return $this->___callPlugins('addAdjustableRenderer', func_get_args(), $pluginInfo);
     }
 }