示例#1
0
 /**
  * Prepare
  * 
  * @return void
  */
 public function prepare()
 {
     $config = $this->getConfiguration();
     $context = $this->getContext();
     $config['url'] = $context->getUrl($config['pdfAction'], ['order_id' => $context->getRequestParam('order_id')]);
     $this->setData('config', (array) $config);
     parent::prepare();
 }
示例#2
0
 /**
  * Run test getComponentName method
  *
  * @return void
  */
 public function testGetComponentName()
 {
     $this->assertTrue($this->action->getComponentName() === Action::NAME);
 }