File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Filament/Pages/Integrations
tests/Unit/Actions/Integrations Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ private function importIncidents(array $updatesPerDay): void
53
53
Incident::updateOrCreate (
54
54
[
55
55
'external_provider ' => $ provider = ExternalProviderEnum::OhDear,
56
- 'external_id ' => $ incident ['id ' ]
56
+ 'external_id ' => $ incident ['id ' ],
57
57
],
58
58
[
59
59
'name ' => $ incident ['title ' ],
Original file line number Diff line number Diff line change @@ -29,8 +29,11 @@ class OhDear extends Page
29
29
protected static string $ view = 'cachet::filament.pages.integrations.oh-dear ' ;
30
30
31
31
public string $ url ;
32
+
32
33
public bool $ import_sites = false ;
34
+
33
35
public ?int $ component_group_id = null ;
36
+
34
37
public bool $ import_incidents = false ;
35
38
36
39
/**
@@ -81,7 +84,7 @@ protected function getFormSchema(): array
81
84
->label (__ ('Import Incidents ' ))
82
85
->helperText (__ ('Recent incidents from Oh Dear will be imported as incidents in Cachet. ' ))
83
86
->default (false ),
84
- ])
87
+ ]),
85
88
];
86
89
}
87
90
Original file line number Diff line number Diff line change 6
6
use Cachet \Enums \IncidentStatusEnum ;
7
7
8
8
it ('can import an OhDear feed ' , function () {
9
- $ importOhDearFeed = new ImportOhDearFeed () ;
9
+ $ importOhDearFeed = new ImportOhDearFeed ;
10
10
11
11
$ data = json_decode (file_get_contents (__DIR__ .'/../../../stubs/ohdear-feed-php.json ' ), true );
12
12
21
21
22
22
$ this ->assertDatabaseHas ('incidents ' , [
23
23
'external_provider ' => ExternalProviderEnum::OhDear->value ,
24
- 'external_id ' => " 1274100 " ,
24
+ 'external_id ' => ' 1274100 ' ,
25
25
'name ' => 'php.net has recovered. ' ,
26
26
'status ' => IncidentStatusEnum::fixed,
27
27
]);
You can’t perform that action at this time.
0 commit comments