Add stickied incident

This commit is contained in:
Antoine GIRARD
2016-08-17 01:12:21 +02:00
parent 268e0c1747
commit 1954cf26f3
22 changed files with 191 additions and 14 deletions

View File

@@ -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',

View File

@@ -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']

View File

@@ -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']