Fix testApiAuthenticateCustomerShouldFailIfCustomerNotActivated having random results
This commit is contained in:
parent
6be77f21c6
commit
020fd8b092
1 changed files with 7 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue