예제 #1
0
파일: actiontest.php 프로젝트: evanjt/core
 /**
  * @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(), 'icon' => $action->getIcon()];
 }