From c94fc8a6da4655bbaf42e5a0303053647e13bf95 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 16 Sep 2024 19:44:22 +1000 Subject: [PATCH] Update .env.example vars --- tests/Feature/CompanyTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Feature/CompanyTest.php b/tests/Feature/CompanyTest.php index af3ec46703ac..c78d0fbb109e 100644 --- a/tests/Feature/CompanyTest.php +++ b/tests/Feature/CompanyTest.php @@ -63,11 +63,11 @@ class CompanyTest extends TestCase $response = $this->withHeaders([ 'X-API-SECRET' => config('ninja.api_secret'), 'X-API-TOKEN' => $this->token, - ])->putJson('/api/v1/companies/'.$this->encodePrimaryKey($this->company->id), $company_update); + ])->putJson('/api/v1/companies/'.$this->company->hashed_id, $company_update); $response->assertStatus(200); - - $this->assertEquals($safeEmail, $response->json('data.expense_mailbox')); + $arr = $response->json(); + $this->assertEquals($safeEmail, $arr['data']['expense_mailbox']); // Test invalid email address $company_update = [