Skip to content

Firefly III: a personal finances manager

Finished even more tests

James Colea2971314405a
diff --git a/tests/acceptance/Controllers/Transaction/ConvertControllerTest.php b/tests/acceptance/Controllers/Transaction/ConvertControllerTest.php
index 6925ac1c2c..2f26733e3a 100644
--- a/tests/acceptance/Controllers/Transaction/ConvertControllerTest.php
+++ b/tests/acceptance/Controllers/Transaction/ConvertControllerTest.php
@@ -100,9 +100,12 @@ class ConvertControllerTest extends TestCase
*/
public function testPostIndex()
{
- //
+ // convert a withdrawal to a transfer. Requires the ID of another asset account.
+ $data = [
+ 'destination_account_asset' => 2,
+ ];
$this->be($this->user());
- $this->call('post', route('transactions.convert.index', ['transfer', 672]));
+ $this->call('post', route('transactions.convert.index', ['transfer', 672]), $data);
$this->assertResponseStatus(302);
$this->assertRedirectedToRoute('transactions.show', [672]);
}