1414use Illuminate \Support \Facades \Config ;
1515use Illuminate \Support \Facades \DB ;
1616use Illuminate \Support \Facades \Hash ;
17- use Kodamity \Libraries \ApiUsagePulse \Enums \PulseRecordTypes ;
17+ use Kodamity \Libraries \ApiUsagePulse \Enums \RecordTypes ;
1818use Kodamity \Libraries \ApiUsagePulse \Recorders \RequestsStatistics ;
1919use Kodamity \Libraries \ApiUsagePulse \Tests \TestCase ;
2020use Laravel \Pulse \Facades \Pulse ;
@@ -46,7 +46,7 @@ public function it_captures_requests_statistics(): void
4646
4747 Pulse::ignore (function () {
4848 $ aggregatesRows = DB ::table ('pulse_aggregates ' )
49- ->where ('type ' , PulseRecordTypes ::RequestsStatisticsTotal)
49+ ->where ('type ' , RecordTypes ::RequestsStatisticsTotal)
5050 ->where ('aggregate ' , 'count ' )
5151 ->get ();
5252 $ this ->assertCount (4 , $ aggregatesRows );
@@ -56,7 +56,7 @@ public function it_captures_requests_statistics(): void
5656 }
5757
5858 $ entriesRows = DB ::table ('pulse_entries ' )
59- ->where ('type ' , PulseRecordTypes ::RequestsStatisticsTotal)
59+ ->where ('type ' , RecordTypes ::RequestsStatisticsTotal)
6060 ->get ();
6161
6262 $ this ->assertCount (4 , $ entriesRows );
@@ -75,13 +75,13 @@ public function it_captures_successful_requests_statistics(): void
7575
7676 Pulse::ignore (function () {
7777 $ aggregatesRows = DB ::table ('pulse_aggregates ' )
78- ->where ('type ' , PulseRecordTypes ::RequestsStatisticsTotal)
78+ ->where ('type ' , RecordTypes ::RequestsStatisticsTotal)
7979 ->where ('aggregate ' , 'count ' )
8080 ->get ();
8181 $ this ->assertCount (4 , $ aggregatesRows );
8282
8383 $ successfulAggregatesRows = DB ::table ('pulse_aggregates ' )
84- ->where ('type ' , PulseRecordTypes ::RequestsStatisticsSuccessful)
84+ ->where ('type ' , RecordTypes ::RequestsStatisticsSuccessful)
8585 ->where ('aggregate ' , 'count ' )
8686 ->get ();
8787 $ this ->assertCount (4 , $ successfulAggregatesRows );
@@ -91,7 +91,7 @@ public function it_captures_successful_requests_statistics(): void
9191 }
9292
9393 $ entriesRows = DB ::table ('pulse_entries ' )
94- ->where ('type ' , PulseRecordTypes ::RequestsStatisticsSuccessful)
94+ ->where ('type ' , RecordTypes ::RequestsStatisticsSuccessful)
9595 ->get ();
9696
9797 $ this ->assertCount (2 , $ entriesRows );
0 commit comments