@@ -23,15 +23,15 @@ public function testAirPollutionGetCurrent()
2323 )
2424 );
2525
26- $ response = $ this ->getApi ()->getAirPollution ()->getCurrent (38.7077507 , - 9.1365919 );
26+ $ response = $ this ->givenApi ()->getAirPollution ()->getCurrent (50 , 50 );
2727 $ this ->assertCurrentResponse ($ response );
2828 }
2929
3030 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidCoordinateData ' )]
3131 public function testAirPollutionGetCurrentWithInvalidCoordinate (float $ latitude , float $ longitude , string $ expectedException )
3232 {
3333 $ this ->expectException ($ expectedException );
34- $ this ->getApi ()->getAirPollution ()->getCurrent ($ latitude , $ longitude );
34+ $ this ->givenApi ()->getAirPollution ()->getCurrent ($ latitude , $ longitude );
3535 }
3636
3737 public function testAirPollutionGetForecast ()
@@ -43,15 +43,15 @@ public function testAirPollutionGetForecast()
4343 )
4444 );
4545
46- $ response = $ this ->getApi ()->getAirPollution ()->getForecast (38.7077507 , - 9.1365919 );
46+ $ response = $ this ->givenApi ()->getAirPollution ()->getForecast (50 , 50 );
4747 $ this ->assertForecastResponse ($ response );
4848 }
4949
5050 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidCoordinateData ' )]
5151 public function testAirPollutionGetForecastWithInvalidCoordinate (float $ latitude , float $ longitude , string $ expectedException )
5252 {
5353 $ this ->expectException ($ expectedException );
54- $ this ->getApi ()->getAirPollution ()->getForecast ($ latitude , $ longitude );
54+ $ this ->givenApi ()->getAirPollution ()->getForecast ($ latitude , $ longitude );
5555 }
5656
5757 public function testAirPollutionGetHistory ()
@@ -65,9 +65,9 @@ public function testAirPollutionGetHistory()
6565
6666 $ utcTimezone = new \DateTimeZone ('UTC ' );
6767
68- $ response = $ this ->getApi ()->getAirPollution ()->getHistory (
69- 38.7077507 ,
70- - 9.1365919 ,
68+ $ response = $ this ->givenApi ()->getAirPollution ()->getHistory (
69+ 50 ,
70+ 50 ,
7171 new \DateTimeImmutable ('-5 days ' , $ utcTimezone ),
7272 new \DateTimeImmutable ('-4 days ' , $ utcTimezone )
7373 );
@@ -82,7 +82,7 @@ public function testAirPollutionGetHistoryWithInvalidCoordinate(float $latitude,
8282 $ startDate = new \DateTimeImmutable ('-5 days ' );
8383 $ endDate = new \DateTimeImmutable ('-4 days ' );
8484
85- $ this ->getApi ()->getAirPollution ()->getHistory ($ latitude , $ longitude , $ startDate , $ endDate );
85+ $ this ->givenApi ()->getAirPollution ()->getHistory ($ latitude , $ longitude , $ startDate , $ endDate );
8686 }
8787
8888 #[DataProviderExternal(InvalidParamDataProvider::class, 'provideInvalidPastDateData ' )]
@@ -92,9 +92,9 @@ public function testAirPollutionGetHistoryWithInvalidPastStartDate(
9292 )
9393 {
9494 $ this ->expectException ($ expectedException );
95- $ this ->getApi ()->getAirPollution ()->getHistory (
96- 38.7077507 ,
97- - 9.1365919 ,
95+ $ this ->givenApi ()->getAirPollution ()->getHistory (
96+ 50 ,
97+ 50 ,
9898 $ startDate ,
9999 new \DateTimeImmutable ('-5 days ' , new \DateTimeZone ('UTC ' ))
100100 );
@@ -107,9 +107,9 @@ public function testAirPollutionGetHistoryWithInvalidPastEndDate(
107107 )
108108 {
109109 $ this ->expectException ($ expectedException );
110- $ this ->getApi ()->getAirPollution ()->getHistory (
111- 38.7077507 ,
112- - 9.1365919 ,
110+ $ this ->givenApi ()->getAirPollution ()->getHistory (
111+ 50 ,
112+ 50 ,
113113 new \DateTimeImmutable ('-5 days ' , new \DateTimeZone ('UTC ' )),
114114 $ endDate
115115 );
@@ -123,7 +123,7 @@ public function testAirPollutionGetHistoryWithInvalidDateRange(
123123 )
124124 {
125125 $ this ->expectException ($ expectedException );
126- $ this ->getApi ()->getAirPollution ()->getHistory (38.7077507 , - 9.1365919 , $ startDate , $ endDate );
126+ $ this ->givenApi ()->getAirPollution ()->getHistory (50 , 50 , $ startDate , $ endDate );
127127 }
128128
129129 private function assertCurrentResponse (AirPollutionLocation $ response ): void
0 commit comments