Fixes tests.

This commit is contained in:
James Cole
2017-02-24 21:01:33 +01:00
parent 3d4feff7de
commit fc2cee7a54
3 changed files with 16 additions and 0 deletions

View File

@@ -67,6 +67,18 @@ class TransactionControllerTest extends TestCase
$response->assertStatus(200);
}
/**
* @covers \FireflyIII\Http\Controllers\Controller::redirectToAccount
* @covers \FireflyIII\Http\Controllers\TransactionController::show
*/
public function testShowOpeningBalance()
{
$this->be($this->user());
$journal = $this->user()->transactionJournals()->where('transaction_type_id',4)->first();
$response = $this->get(route('transactions.show', [$journal->id]));
$response->assertStatus(302);
}
/**
* @covers \FireflyIII\Http\Controllers\TransactionController::show
*/