ldc-crm/tests/StressTest/CustomerStressTest.php

20 lines
482 B
PHP

<?php
namespace Tests\Unit;
use LDC\LDCCRM\CrmApiV2;
use LDC\LDCCRM\Models\Customer;
class CustomerStressTest extends CrmClientTester
{
public function testCustomerGet()
{
$api = new CrmApiV2();
$customer = $api->getCustomerOrNew(static::$info->hashcode);
for ($i = 0; $i < 15; $i++) {
$cst = Customer::findWithEmail($customer->email);
$this->assertIsObject($cst, 'Should have retrieved customer');
}
}
}