mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 21:04:35 -04:00
Fixes for tests
This commit is contained in:
parent
85ccca8f23
commit
bfd6cf876b
@ -77,6 +77,8 @@ class CreateAccount
|
|||||||
$sp794f3f->key = Str::random(32);
|
$sp794f3f->key = Str::random(32);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sp794f3f->trial_started = now();
|
||||||
|
$sp794f3f->trial_plan = 'pro';
|
||||||
$sp794f3f->save();
|
$sp794f3f->save();
|
||||||
|
|
||||||
$sp035a66 = CreateCompany::dispatchNow($this->request, $sp794f3f);
|
$sp035a66 = CreateCompany::dispatchNow($this->request, $sp794f3f);
|
||||||
|
@ -175,11 +175,11 @@ class GeneratesCounterTest extends TestCase
|
|||||||
|
|
||||||
$invoice_number = $this->getNextInvoiceNumber($this->client->fresh(), $this->invoice->fresh());
|
$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());
|
$invoice_number = $this->getNextInvoiceNumber($this->client->fresh(), $this->invoice->fresh());
|
||||||
|
|
||||||
$this->assertEquals($invoice_number, '0008');
|
$this->assertEquals($invoice_number, '0002');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testQuoteNumberValue()
|
public function testQuoteNumberValue()
|
||||||
@ -338,11 +338,11 @@ class GeneratesCounterTest extends TestCase
|
|||||||
|
|
||||||
$invoice_number = $this->getNextInvoiceNumber($cliz->fresh(), $this->invoice);
|
$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);
|
$invoice_number = $this->getNextInvoiceNumber($cliz->fresh(), $this->invoice);
|
||||||
|
|
||||||
$this->assertEquals($invoice_number, '0008');
|
$this->assertEquals($invoice_number, '0002');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testClientNumber()
|
public function testClientNumber()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user