mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for tests
This commit is contained in:
parent
0d17b299a0
commit
c44e8330a5
@ -21,7 +21,7 @@ class ProjectIdsToEntities extends Migration
|
||||
$table->longText('fields')->change();
|
||||
});
|
||||
|
||||
Schema::table('gateways', function (Blueprint $table) {
|
||||
Schema::table('companies', function (Blueprint $table) {
|
||||
$table->boolean('mark_expenses_invoiceable')->default(0);
|
||||
$table->boolean('mark_expenses_paid')->default(0);
|
||||
$table->enum('use_credits_payment', ['always', 'off', 'optin'])->nullable();
|
||||
|
@ -33,7 +33,9 @@ class AutoBillInvoiceTest extends TestCase
|
||||
|
||||
public function testAutoBillFunctionality()
|
||||
{
|
||||
|
||||
$this->company->use_credits_payment = 'always';
|
||||
$this->company->save();
|
||||
|
||||
$this->assertEquals($this->client->balance, 10);
|
||||
$this->assertEquals($this->client->paid_to_date, 0);
|
||||
$this->assertEquals($this->client->credit_balance, 10);
|
||||
|
Loading…
x
Reference in New Issue
Block a user