diff --git a/app/Jobs/Account/CreateAccount.php b/app/Jobs/Account/CreateAccount.php index 9ea168d03ed3..61c685bc4512 100644 --- a/app/Jobs/Account/CreateAccount.php +++ b/app/Jobs/Account/CreateAccount.php @@ -77,6 +77,8 @@ class CreateAccount $sp794f3f->key = Str::random(32); } + $sp794f3f->trial_started = now(); + $sp794f3f->trial_plan = 'pro'; $sp794f3f->save(); $sp035a66 = CreateCompany::dispatchNow($this->request, $sp794f3f); diff --git a/tests/Unit/GeneratesCounterTest.php b/tests/Unit/GeneratesCounterTest.php index df24792e025c..6fb5bbe8872c 100644 --- a/tests/Unit/GeneratesCounterTest.php +++ b/tests/Unit/GeneratesCounterTest.php @@ -175,11 +175,11 @@ class GeneratesCounterTest extends TestCase $invoice_number = $this->getNextInvoiceNumber($this->client->fresh(), $this->invoice->fresh()); - $this->assertEquals($invoice_number, '0007'); + $this->assertEquals($invoice_number, '0002'); $invoice_number = $this->getNextInvoiceNumber($this->client->fresh(), $this->invoice->fresh()); - $this->assertEquals($invoice_number, '0008'); + $this->assertEquals($invoice_number, '0002'); } public function testQuoteNumberValue() @@ -338,11 +338,11 @@ class GeneratesCounterTest extends TestCase $invoice_number = $this->getNextInvoiceNumber($cliz->fresh(), $this->invoice); - $this->assertEquals($invoice_number, '0007'); + $this->assertEquals($invoice_number, '0002'); $invoice_number = $this->getNextInvoiceNumber($cliz->fresh(), $this->invoice); - $this->assertEquals($invoice_number, '0008'); + $this->assertEquals($invoice_number, '0002'); } public function testClientNumber()