resolve the dependency injection
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user