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