mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Restructure code to rename a variable.
This commit is contained in:
		| @@ -200,8 +200,8 @@ class MassControllerTest extends TestCase | ||||
|             'amount'                                    => [$deposit->id => 1600], | ||||
|             'amount_currency_id_amount_' . $deposit->id => 1, | ||||
|             'date'                                      => [$deposit->id => '2014-07-24'], | ||||
|             'source_account_name'                       => [$deposit->id => 'Job'], | ||||
|             'destination_account_id'                    => [$deposit->id => 1], | ||||
|             'source_name'                       => [$deposit->id => 'Job'], | ||||
|             'destination_id'                    => [$deposit->id => 1], | ||||
|             'category'                                  => [$deposit->id => 'Salary'], | ||||
|         ]; | ||||
|  | ||||
|   | ||||
| @@ -306,7 +306,7 @@ class SingleControllerTest extends TestCase | ||||
|         $response->assertStatus(200); | ||||
|         // has bread crumb | ||||
|         $response->assertSee('<ol class="breadcrumb">'); | ||||
|         $response->assertSee(' name="source_account_name" type="text" value="">'); | ||||
|         $response->assertSee(' name="source_name" type="text" value="">'); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -352,7 +352,7 @@ class SingleControllerTest extends TestCase | ||||
|         $response->assertStatus(200); | ||||
|         // has bread crumb | ||||
|         $response->assertSee('<ol class="breadcrumb">'); | ||||
|         $response->assertSee(' name="destination_account_name" type="text" value="">'); | ||||
|         $response->assertSee(' name="destinationt_name" type="text" value="">'); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
| @@ -592,8 +592,8 @@ class SingleControllerTest extends TestCase | ||||
|             'what'                      => 'withdrawal', | ||||
|             'amount'                    => '10', | ||||
|             'amount_currency_id_amount' => 1, | ||||
|             'source_account_id'         => 1, | ||||
|             'destination_account_name'  => 'Some destination', | ||||
|             'source_id'         => 1, | ||||
|             'destination_name'  => 'Some destination', | ||||
|             'date'                      => '2016-01-01', | ||||
|             'description'               => 'Test descr', | ||||
|         ]; | ||||
| @@ -645,8 +645,8 @@ class SingleControllerTest extends TestCase | ||||
|             'what'                      => 'withdrawal', | ||||
|             'amount'                    => '10', | ||||
|             'amount_currency_id_amount' => 1, | ||||
|             'source_account_id'         => 1, | ||||
|             'destination_account_name'  => 'Some destination', | ||||
|             'source_id'         => 1, | ||||
|             'destination_name'  => 'Some destination', | ||||
|             'date'                      => '2016-01-01', | ||||
|             'description'               => 'Test descr', | ||||
|         ]; | ||||
| @@ -700,8 +700,8 @@ class SingleControllerTest extends TestCase | ||||
|             'what'                      => 'deposit', | ||||
|             'amount'                    => '10', | ||||
|             'amount_currency_id_amount' => 1, | ||||
|             'destination_account_id'    => 1, | ||||
|             'source_account_name'       => 'Some source', | ||||
|             'destination_id'    => 1, | ||||
|             'source_name'       => 'Some source', | ||||
|             'date'                      => '2016-01-01', | ||||
|             'description'               => 'Test descr', | ||||
|         ]; | ||||
| @@ -756,8 +756,8 @@ class SingleControllerTest extends TestCase | ||||
|             'what'                      => 'transfer', | ||||
|             'amount'                    => '10', | ||||
|             'amount_currency_id_amount' => 1, | ||||
|             'destination_account_id'    => 1, | ||||
|             'source_account_id'         => 2, | ||||
|             'destination_id'    => 1, | ||||
|             'source_id'         => 2, | ||||
|             'date'                      => '2016-01-01', | ||||
|             'description'               => 'Test descr', | ||||
|         ]; | ||||
| @@ -814,8 +814,8 @@ class SingleControllerTest extends TestCase | ||||
|             'amount_currency_id_amount'    => 1, | ||||
|             'source_account_currency'      => 1, | ||||
|             'destination_account_currency' => 2, | ||||
|             'destination_account_id'       => 1, | ||||
|             'source_account_id'            => 2, | ||||
|             'destination_id'       => 1, | ||||
|             'source_id'            => 2, | ||||
|             'date'                         => '2016-01-01', | ||||
|             'description'                  => 'Test descr', | ||||
|         ]; | ||||
| @@ -872,8 +872,8 @@ class SingleControllerTest extends TestCase | ||||
|             'id'                        => 123, | ||||
|             'what'                      => 'withdrawal', | ||||
|             'description'               => 'Updated groceries', | ||||
|             'source_account_id'         => 1, | ||||
|             'destination_account_name'  => 'PLUS', | ||||
|             'source_id'         => 1, | ||||
|             'destination_name'  => 'PLUS', | ||||
|             'amount'                    => '123', | ||||
|             'amount_currency_id_amount' => 1, | ||||
|             'budget_id'                 => 1, | ||||
|   | ||||
| @@ -296,7 +296,7 @@ class SplitControllerTest extends TestCase | ||||
|             'what'                           => 'deposit', | ||||
|             'journal_description'            => 'Updated salary', | ||||
|             'journal_currency_id'            => 1, | ||||
|             'journal_destination_account_id' => 1, | ||||
|             'journal_destination_id' => 1, | ||||
|             'journal_amount'                 => 1591, | ||||
|             'date'                           => '2014-01-24', | ||||
|             'tags'                           => '', | ||||
| @@ -346,7 +346,7 @@ class SplitControllerTest extends TestCase | ||||
|             'what'                           => 'opening balance', | ||||
|             'journal_description'            => 'Updated salary', | ||||
|             'journal_currency_id'            => 1, | ||||
|             'journal_destination_account_id' => 1, | ||||
|             'journal_destination_id' => 1, | ||||
|             'journal_amount'                 => 1591, | ||||
|             'date'                           => '2014-01-24', | ||||
|             'tags'                           => '', | ||||
| @@ -394,14 +394,14 @@ class SplitControllerTest extends TestCase | ||||
|             'what'                      => 'transfer', | ||||
|             'journal_description'       => 'Some updated withdrawal', | ||||
|             'journal_currency_id'       => 1, | ||||
|             'journal_source_account_id' => 1, | ||||
|             'journal_source_id' => 1, | ||||
|             'journal_amount'            => 1591, | ||||
|             'date'                      => '2014-01-24', | ||||
|             'tags'                      => '', | ||||
|             'transactions'              => [ | ||||
|                 [ | ||||
|                     'transaction_description' => 'Split #1', | ||||
|                     'source_account_id'       => '1', | ||||
|                     'source_id'       => '1', | ||||
|                     'destination_id'          => '2', | ||||
|                     'transaction_currency_id' => 1, | ||||
|                     'amount'                  => 1591, | ||||
| @@ -450,7 +450,7 @@ class SplitControllerTest extends TestCase | ||||
|             'what'                      => 'withdrawal', | ||||
|             'journal_description'       => 'Some updated withdrawal', | ||||
|             'journal_currency_id'       => 1, | ||||
|             'journal_source_account_id' => 1, | ||||
|             'journal_source_id' => 1, | ||||
|             'journal_amount'            => 1591, | ||||
|             'date'                      => '2014-01-24', | ||||
|             'tags'                      => '', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user