Fix tests

This commit is contained in:
James Brooks
2016-10-30 20:59:54 +00:00
parent 804d02fbdc
commit ffab454314
2 changed files with 4 additions and 4 deletions

View File

@@ -76,7 +76,7 @@ class ReportIncidentCommandHandler
}
// The incident occurred at a different time.
if ($occurredAt = $command->occurredAt) {
if ($occurredAt = $command->occurred_at) {
if ($date = $this->dates->create('Y-m-d H:i', $occurredAt)) {
$incident->fill(['occurred_at' => $date]);
} else {
@@ -129,7 +129,7 @@ class ReportIncidentCommandHandler
'visible' => $command->visible,
'notify' => $command->notify,
'stickied' => $command->stickied,
'occurredAt' => $command->occurredAt,
'occurred_at' => $command->occurred_at,
'component' => Component::find($command->component_id) ?: null,
'component_status' => $command->component_status,
],

View File

@@ -65,7 +65,7 @@ class UpdateIncidentCommandHandler
$incident->fill($this->filter($command));
// The incident occurred at a different time.
if ($occurredAt = $command->occurredAt) {
if ($occurredAt = $command->occurred_at) {
if ($date = $this->dates->create('Y-m-d H:i', $occurredAt)) {
$incident->fill(['occurred_at' => $date]);
} else {
@@ -141,7 +141,7 @@ class UpdateIncidentCommandHandler
'visible' => $command->visible,
'notify' => $command->notify,
'stickied' => $command->stickied,
'occurredAt' => $command->occurredAt,
'occurred_at' => $command->occurred_at,
'component' => Component::find($command->component_id) ?: null,
'component_status' => $command->component_status,
],