diff --git a/tests/CRM/ApiV2/CustomerTest.php b/tests/CRM/ApiV2/CustomerTest.php index ba84bb4..2af4223 100644 --- a/tests/CRM/ApiV2/CustomerTest.php +++ b/tests/CRM/ApiV2/CustomerTest.php @@ -144,7 +144,13 @@ class CustomerTest extends ApiBase */ public function testApiAuthenticateCustomerShouldFailIfCustomerNotActivated() { - extract($this->getCustomer(false)); + $login = CustomerLogin::query()->where('status', false)->firstOrFail(); + /** @var \App\Models\Brand $brand */ + $brand = $login->brand; + /** @var \App\Models\Customer $customer */ + $customer = $login->customer; + /** @var \App\Models\Service $service */ + $service = $brand->services()->firstOrFail(); $response = $this->callApiWithToken( $service, 'post',