mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-25 06:51:08 +00:00
Finished even more tests
This commit is contained in:
@@ -100,9 +100,12 @@ class ConvertControllerTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testPostIndex()
|
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->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->assertResponseStatus(302);
|
||||||
$this->assertRedirectedToRoute('transactions.show', [672]);
|
$this->assertRedirectedToRoute('transactions.show', [672]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user