create(); $azmayeshSample = AzmayeshSample::factory()->create(); $response = $this->actingAs($user)->postJson(route('v3.azmayesh_samples.delete', [$azmayeshSample->id])); $response->assertOk(); $this->assertDatabaseMissing('azmayesh_samples', [ 'azmayesh_id' => $azmayeshSample->azmayesh_id, 'data' => $azmayeshSample->data, ]); } }