Finished even more tests

This commit is contained in:
James Cole
2016-12-10 17:46:19 +01:00
parent bae2161ee3
commit a297131440

View File

@@ -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]);
}