Add stickied incident
This commit is contained in:
@@ -55,10 +55,11 @@ class IncidentTest extends AbstractApiTestCase
|
||||
$this->beUser();
|
||||
|
||||
$this->post('/api/v1/incidents', [
|
||||
'name' => 'Foo',
|
||||
'message' => 'Lorem ipsum dolor sit amet',
|
||||
'status' => 1,
|
||||
'visible' => 1,
|
||||
'name' => 'Foo',
|
||||
'message' => 'Lorem ipsum dolor sit amet',
|
||||
'status' => 1,
|
||||
'visible' => 1,
|
||||
'stickied' => false,
|
||||
]);
|
||||
$this->seeJson(['name' => 'Foo']);
|
||||
$this->assertResponseOk();
|
||||
@@ -77,6 +78,7 @@ class IncidentTest extends AbstractApiTestCase
|
||||
'component_id' => $component->id,
|
||||
'component_status' => 1,
|
||||
'visible' => 1,
|
||||
'stickied' => false,
|
||||
]);
|
||||
$this->seeJson(['name' => 'Foo']);
|
||||
$this->assertResponseOk();
|
||||
@@ -91,6 +93,7 @@ class IncidentTest extends AbstractApiTestCase
|
||||
'name' => 'Foo',
|
||||
'status' => 1,
|
||||
'visible' => 1,
|
||||
'stickied' => false,
|
||||
'template' => $template->slug,
|
||||
'vars' => [
|
||||
'name' => 'Foo',
|
||||
|
||||
@@ -36,6 +36,7 @@ class ReportIncidentCommandTest extends AbstractTestCase
|
||||
'component_id' => 1,
|
||||
'component_status' => 1,
|
||||
'notify' => false,
|
||||
'stickied' => false,
|
||||
'incident_date' => null,
|
||||
'template' => null,
|
||||
'template_vars' => null,
|
||||
@@ -49,6 +50,7 @@ class ReportIncidentCommandTest extends AbstractTestCase
|
||||
$params['component_id'],
|
||||
$params['component_status'],
|
||||
$params['notify'],
|
||||
$params['stickied'],
|
||||
$params['incident_date'],
|
||||
$params['template'],
|
||||
$params['template_vars']
|
||||
|
||||
@@ -38,6 +38,7 @@ class UpdateIncidentCommandTest extends AbstractTestCase
|
||||
'component_id' => 1,
|
||||
'component_status' => 1,
|
||||
'notify' => false,
|
||||
'stickied' => false,
|
||||
'incident_date' => null,
|
||||
'template' => null,
|
||||
'template_vars' => null,
|
||||
@@ -52,6 +53,7 @@ class UpdateIncidentCommandTest extends AbstractTestCase
|
||||
$params['component_id'],
|
||||
$params['component_status'],
|
||||
$params['notify'],
|
||||
$params['stickied'],
|
||||
$params['incident_date'],
|
||||
$params['template'],
|
||||
$params['template_vars']
|
||||
|
||||
Reference in New Issue
Block a user