mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Code cleanup.
This commit is contained in:
@@ -67,18 +67,6 @@ 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
|
||||
*/
|
||||
@@ -90,4 +78,16 @@ class TransactionControllerTest extends TestCase
|
||||
$response->assertSee('<ol class="breadcrumb">');
|
||||
}
|
||||
|
||||
/**
|
||||
* @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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user