diff --git a/app/Providers/NikarayanServiceProvider.php b/app/Providers/NikarayanServiceProvider.php index 7088e39d..c1dd5cb8 100644 --- a/app/Providers/NikarayanServiceProvider.php +++ b/app/Providers/NikarayanServiceProvider.php @@ -21,7 +21,7 @@ class NikarayanServiceProvider extends ServiceProvider */ public function boot(): void { - $this->app->bind(NikarayanServiceProvider::class, function () { + $this->app->bind(NikarayanService::class, function () { $url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl"; $soapClient = new SoapClient($url); return new NikarayanService($soapClient); diff --git a/tests/Feature/V2/Dashboard/RoadObservation/HandleTest.php b/tests/Feature/V2/Dashboard/RoadObservation/HandleTest.php index a2df4a5a..ccd235e7 100644 --- a/tests/Feature/V2/Dashboard/RoadObservation/HandleTest.php +++ b/tests/Feature/V2/Dashboard/RoadObservation/HandleTest.php @@ -27,10 +27,6 @@ class HandleTest extends TestCase $roadObserved = RoadObserved::factory()->create(); - $mock = $this->mock(NikarayanService::class, function (MockInterface $mock) { - $mock->shouldReceive('updateRoadObservedInfoByNikarayan')->andReturn(0); - }); - $response = $this->actingAs($user)->postJson("/v2/road_observations/handle/{$roadObserved->id}"); $response->assertForbidden();