Fixes for tests

This commit is contained in:
David Bomba 2020-10-15 13:07:48 +11:00
parent 0d17b299a0
commit c44e8330a5
2 changed files with 4 additions and 2 deletions

View File

@ -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();

View File

@ -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);