18 lines
554 B
PHP
18 lines
554 B
PHP
<?php
|
|
|
|
namespace Tests\Unit;
|
|
|
|
use LDC\LDCCRM\Models\SingleOptin;
|
|
|
|
class SingleOptinStressTest extends CrmClientTester
|
|
{
|
|
public function testCustomerGet()
|
|
{
|
|
for ($i = 0; $i < 3; $i++) {
|
|
$optinStatusWasSet = SingleOptin::setStatus('test@gmail.com', true);
|
|
$this->assertTrue($optinStatusWasSet, 'Should have updated singleoptin');
|
|
$optinStatusWasSet = SingleOptin::setStatus('test@gmail.com', false);
|
|
$this->assertTrue($optinStatusWasSet, 'Should have updated singleoptin');
|
|
}
|
|
}
|
|
}
|