public function testResponseCanBeCreatedFromResult()
 {
     $key = 'key';
     $value = 'value';
     $response = Action::fromResult(array($key => $value));
     $this->assertInstanceOf(Action::CLASS, $response);
     $this->assertEquals($value, $response->getResult($key));
 }
Example #2
0
 /**
  * @param array $data
  * @return Action
  */
 protected function createAction(array $data)
 {
     return Action::fromResult($data);
 }