Update tests.

This commit is contained in:
James Cole
2017-09-12 19:47:29 +02:00
parent ce205ab413
commit 6e80b2f4c8
9 changed files with 16 additions and 18 deletions

View File

@@ -138,8 +138,8 @@ class AttachmentControllerTest extends TestCase
$this->session(['attachments.edit.uri' => 'http://localhost']);
$data = [
'title' => 'Some updated title ' . rand(1000, 9999),
'notes' => '',
'description' => '',
'notes' => 'A',
'description' => 'B',
];
$this->be($this->user());

View File

@@ -24,7 +24,6 @@ use FireflyIII\Models\Transaction;
use FireflyIII\Models\TransactionType;
use FireflyIII\Repositories\Budget\BudgetRepositoryInterface;
use Illuminate\Support\Collection;
use Log;
use Tests\TestCase;
/**
@@ -104,8 +103,6 @@ class BudgetReportControllerTest extends TestCase
$transaction->amount = '-100';
$transaction->opposing_account_id = 8;
Log::debug('Transaction', $transaction->toArray());
$budgetRepos->shouldReceive('getAllBudgetLimits')->andReturn(new Collection([$one, $two]))->once();

View File

@@ -176,7 +176,7 @@ class RuleGroupControllerTest extends TestCase
$repository->shouldReceive('find')->andReturn(new RuleGroup);
$data = [
'title' => 'A',
'description' => '',
'description' => 'No description',
];