Skip to content

Commit 27cc4f8

Browse files
FIx failing tests by adding missing column incident.message to test db
1 parent 33cd4e1 commit 27cc4f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/php/library/Notifications/Integrations/IncidentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function setUp(): void
4343
$this->db = new RecordingConnection(['db' => 'sqlite', 'dbname' => ':memory:']);
4444
$this->db->exec(
4545
'CREATE TABLE incident (id INTEGER PRIMARY KEY AUTOINCREMENT,'
46-
. ' object_id BLOB, started_at INTEGER, recovered_at INTEGER, severity VARCHAR, mute_reason VARCHAR);'
46+
. ' object_id BLOB, started_at INTEGER, recovered_at INTEGER, severity VARCHAR, mute_reason VARCHAR, message VARCHAR);'
4747
. 'CREATE TABLE contact (id INTEGER PRIMARY KEY AUTOINCREMENT, full_name VARCHAR, username VARCHAR,'
4848
. ' default_channel_id INTEGER, changed_at INTEGER, deleted VARCHAR, external_uuid VARCHAR);'
4949
. 'CREATE TABLE contactgroup (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR, changed_at INTEGER,'

test/php/library/Notifications/Integrations/IncidentsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private function createDatabase(): RecordingConnection
161161
);
162162
$db->exec(
163163
'CREATE TABLE incident (id INTEGER PRIMARY KEY AUTOINCREMENT, object_id BLOB, started_at INTEGER,'
164-
. ' recovered_at INTEGER, severity VARCHAR, mute_reason VARCHAR);'
164+
. ' recovered_at INTEGER, severity VARCHAR, mute_reason VARCHAR, message VARCHAR);'
165165
);
166166

167167
return $db;

0 commit comments

Comments
 (0)