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