withoutMiddleware( ThrottleRequests::class ); $this->withoutExceptionHandling(); $this->makeTestData(); if(!config('services.tax.zip_tax.key')) $this->markTestSkipped('No API keys to test with.'); } public TaxProvider $tp; private function bootApi(Client $client) { $this->tp = new TaxProvider($this->company, $client); } public function testStateResolution() { //infer state from zip $client = Client::factory()->create([ 'company_id' => $this->company->id, 'user_id' => $this->user->id, 'address1' => '400 Evelyn Pl', 'city' =>'Beverley Hills', 'state' =>'CA', 'postal_code' =>90210, 'country_id' => 840, ]); $this->bootApi($client); $this->tp->updateClientTaxData(); } }