Improve test coverage.

This commit is contained in:
James Cole
2017-03-18 20:53:44 +01:00
parent 00b1b54347
commit 1adb0f2f0e
18 changed files with 136 additions and 49 deletions

View File

@@ -111,7 +111,7 @@ class SplitControllerTest extends TestCase
*/
public function testUpdate()
{
$this->session(['transactions.edit-split.url' => 'http://localhost']);
$this->session(['transactions.edit-split.uri' => 'http://localhost']);
$deposit = TransactionJournal::where('transaction_type_id', 2)->where('user_id', $this->user()->id)->first();
$data = [
'id' => $deposit->id,
@@ -158,7 +158,7 @@ class SplitControllerTest extends TestCase
*/
public function testUpdateOpeningBalance()
{
$this->session(['transactions.edit-split.url' => 'http://localhost']);
$this->session(['transactions.edit-split.uri' => 'http://localhost']);
$opening = TransactionJournal::where('transaction_type_id', 4)->where('user_id', $this->user()->id)->first();
$data = [
'id' => $opening->id,