Пример #1
0
 /**
  * @dataProvider dataSetParsedLabel
  * @param string $label
  */
 public function testSetParsedLabel($label)
 {
     $this->assertSame('', $this->action->getParsedLabel());
     $this->assertSame($this->action, $this->action->setParsedLabel($label));
     $this->assertSame($label, $this->action->getParsedLabel());
 }
 /**
  * @param IAction $action
  * @return array
  */
 protected function actionToArray(IAction $action)
 {
     return ['label' => $action->getParsedLabel(), 'link' => $action->getLink(), 'type' => $action->getRequestType(), 'primary' => $action->isPrimary()];
 }