File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 3
3
namespace Tests \Unit ;
4
4
5
5
use Cachet \Enums \ComponentStatusEnum ;
6
- use Cachet \Enums \IncidentStatusEnum ;
7
6
use Cachet \Enums \SystemStatusEnum ;
8
7
use Cachet \Models \Component ;
9
- use Cachet \Models \Incident ;
10
8
use Cachet \Status ;
11
9
12
10
use function PHPUnit \Framework \assertFalse ;
45
43
'status ' => ComponentStatusEnum::operational->value ,
46
44
]);
47
45
48
- $ this ->assertEquals ((new Status () )->current (), SystemStatusEnum::operational);
46
+ $ this ->assertEquals ((new Status )->current (), SystemStatusEnum::operational);
49
47
});
50
48
51
49
it ('can get the current system status as partial outage ' , function () {
57
55
'status ' => ComponentStatusEnum::partial_outage->value ,
58
56
]);
59
57
60
- $ this ->assertEquals ((new Status () )->current (), SystemStatusEnum::partial_outage);
58
+ $ this ->assertEquals ((new Status )->current (), SystemStatusEnum::partial_outage);
61
59
});
62
60
63
61
it ('can get the current system status as major outage ' , function () {
64
62
Component::factory ()->create ([
65
63
'status ' => ComponentStatusEnum::major_outage->value ,
66
64
]);
67
65
68
- $ this ->assertEquals ((new Status () )->current (), SystemStatusEnum::major_outage);
66
+ $ this ->assertEquals ((new Status )->current (), SystemStatusEnum::major_outage);
69
67
});
70
68
71
69
it ('can fetch component overview ' , function () {
You can’t perform that action at this time.
0 commit comments