From 411b4b15829885d75c555c533a4c67ec3b4702e9 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 29 Jul 2020 19:25:59 +1000 Subject: [PATCH] add enable_shop_api field to company table --- app/Models/Company.php | 1 + app/Transformers/CompanyTransformer.php | 1 + tests/Integration/DesignTest.php | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index 2dc887c1f1..a8c3fa440f 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -109,6 +109,7 @@ class Company extends BaseModel 'slack_webhook_url', 'google_analytics_key', 'client_can_register', + 'enable_shop_api', ]; diff --git a/app/Transformers/CompanyTransformer.php b/app/Transformers/CompanyTransformer.php index 6a31e1d616..a4709aa506 100644 --- a/app/Transformers/CompanyTransformer.php +++ b/app/Transformers/CompanyTransformer.php @@ -132,6 +132,7 @@ class CompanyTransformer extends EntityTransformer 'enabled_item_tax_rates' => (int) $company->enabled_item_tax_rates, 'client_can_register' => (bool) $company->client_can_register, 'is_large' => (bool) $company->is_large, + 'enable_shop_api' => (bool) $company->enable_shop_api, ]; } diff --git a/tests/Integration/DesignTest.php b/tests/Integration/DesignTest.php index b311d5a1a6..1a4fdd71d6 100644 --- a/tests/Integration/DesignTest.php +++ b/tests/Integration/DesignTest.php @@ -92,7 +92,6 @@ class DesignTest extends TestCase $this->assertNotNull($html); - $this->quote = factory(\App\Models\Invoice::class)->create([ 'user_id' => $this->user->id, 'client_id' => $this->client->id,