mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Finally remove incomplete test flag
This commit is contained in:
@@ -122,15 +122,15 @@ class SplitControllerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testUpdate()
|
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']);
|
$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 = [
|
$data = [
|
||||||
'id' => $deposit->id,
|
'id' => $deposit->id,
|
||||||
'what' => 'deposit',
|
'what' => 'deposit',
|
||||||
'journal_description' => 'Updated salary',
|
'journal_description' => 'Updated salary',
|
||||||
'currency_id' => 1,
|
'journal_currency_id' => 1,
|
||||||
'journal_destination_account_id' => 1,
|
'journal_destination_account_id' => 1,
|
||||||
'journal_amount' => 1591,
|
'journal_amount' => 1591,
|
||||||
'date' => '2014-01-24',
|
'date' => '2014-01-24',
|
||||||
@@ -158,6 +158,7 @@ class SplitControllerTest extends TestCase
|
|||||||
$this->be($this->user());
|
$this->be($this->user());
|
||||||
$response = $this->post(route('transactions.split.update', [$deposit->id]), $data);
|
$response = $this->post(route('transactions.split.update', [$deposit->id]), $data);
|
||||||
$response->assertStatus(302);
|
$response->assertStatus(302);
|
||||||
|
$response->assertRedirect(route('index'));
|
||||||
$response->assertSessionHas('success');
|
$response->assertSessionHas('success');
|
||||||
|
|
||||||
// journal is updated?
|
// journal is updated?
|
||||||
|
Reference in New Issue
Block a user