/** * 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(); }
/** * Run test getComponentName method * * @return void */ public function testGetComponentName() { $this->assertTrue($this->action->getComponentName() === Action::NAME); }