Finally remove incomplete test flag

This commit is contained in:
James Cole 2017-12-23 21:05:12 +01:00
parent 93c463c349
commit 26f196a067
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -122,15 +122,15 @@ class SplitControllerTest extends TestCase
*/
public function testUpdate()
{
$this->markTestIncomplete('Mockery cannot yet handle PHP7.1 null argument method things.');
//$this->markTestIncomplete('Mockery cannot yet handle PHP7.1 null argument method things.');
$this->session(['transactions.edit-split.uri' => 'http://localhost']);
$deposit = TransactionJournal::where('transaction_type_id', 2)->where('user_id', $this->user()->id)->first();
$deposit = $this->user()->transactionJournals()->where('transaction_type_id', 2)->first();
$data = [
'id' => $deposit->id,
'what' => 'deposit',
'journal_description' => 'Updated salary',
'currency_id' => 1,
'journal_currency_id' => 1,
'journal_destination_account_id' => 1,
'journal_amount' => 1591,
'date' => '2014-01-24',
@ -158,6 +158,7 @@ class SplitControllerTest extends TestCase
$this->be($this->user());
$response = $this->post(route('transactions.split.update', [$deposit->id]), $data);
$response->assertStatus(302);
$response->assertRedirect(route('index'));
$response->assertSessionHas('success');
// journal is updated?