예제 #1
0
 /**
  * @dataProvider decoratorProvider
  *
  * @param $decoratorClass
  * @param $decoratorType
  * @param $decoratorConfig
  */
 public function testDecorator($decoratorClass, $decoratorType, $decoratorConfig)
 {
     $decoratorParams = new DecoratorParams($decoratorType, $decoratorConfig);
     $block = new BlockController();
     $block->setTitle('sample_title');
     $block->setBadge('4');
     $block->setIcon('no_icon');
     $block->getView()->setScript('');
     $decorator = new $decoratorClass();
     $decorator->render($block, $decoratorParams);
 }