diff --git a/app/Support/Import/Routine/Spectre/StageImportDataHandler.php b/app/Support/Import/Routine/Spectre/StageImportDataHandler.php index 2d81cbb82b..66d6cc8518 100644 --- a/app/Support/Import/Routine/Spectre/StageImportDataHandler.php +++ b/app/Support/Import/Routine/Spectre/StageImportDataHandler.php @@ -189,7 +189,7 @@ class StageImportDataHandler 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, - 'original-source' => sprintf('spectre-v%s', config('firefly.version')), + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ diff --git a/tests/Unit/Support/Import/Routine/Bunq/StageImportDataHandlerTest.php b/tests/Unit/Support/Import/Routine/Bunq/StageImportDataHandlerTest.php index c8f0a8b694..bbae78d70f 100644 --- a/tests/Unit/Support/Import/Routine/Bunq/StageImportDataHandlerTest.php +++ b/tests/Unit/Support/Import/Routine/Bunq/StageImportDataHandlerTest.php @@ -41,10 +41,10 @@ use FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface; use FireflyIII\Services\Bunq\ApiContext; use FireflyIII\Services\Bunq\Payment; use FireflyIII\Support\Import\Routine\Bunq\StageImportDataHandler; +use Log; use Mockery; use Preferences; use Tests\TestCase; -use Log; /** * Class StageImportDataHandlerTest @@ -158,6 +158,7 @@ class StageImportDataHandlerTest extends TestCase 'identifier' => 0, ], ], + 'original-source' => 'bunq-v' . config('firefly.version'), ], ]; @@ -382,6 +383,7 @@ class StageImportDataHandlerTest extends TestCase 'identifier' => 0, ], ], + 'original-source' => 'bunq-v' . config('firefly.version'), ], ]; diff --git a/tests/Unit/Support/Import/Routine/Spectre/StageImportDataHandlerTest.php b/tests/Unit/Support/Import/Routine/Spectre/StageImportDataHandlerTest.php index c6bb3e6708..a7ec36c8c8 100644 --- a/tests/Unit/Support/Import/Routine/Spectre/StageImportDataHandlerTest.php +++ b/tests/Unit/Support/Import/Routine/Spectre/StageImportDataHandlerTest.php @@ -34,9 +34,9 @@ use FireflyIII\Services\Spectre\Object\Transaction as SpectreTransaction; use FireflyIII\Services\Spectre\Request\ListTransactionsRequest; use FireflyIII\Support\Import\Routine\File\OpposingAccountMapper; use FireflyIII\Support\Import\Routine\Spectre\StageImportDataHandler; +use Log; use Mockery; use Tests\TestCase; -use Log; /** * Class StageImportDataHandlerTest @@ -51,6 +51,7 @@ class StageImportDataHandlerTest extends TestCase parent::setUp(); Log::info(sprintf('Now in %s.', \get_class($this))); } + /** * @covers \FireflyIII\Support\Import\Routine\Spectre\StageImportDataHandler */ @@ -156,7 +157,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, - + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ [ @@ -179,6 +180,7 @@ class StageImportDataHandlerTest extends TestCase 'identifier' => 0, ], ], + ], 1 => [ 'type' => 'deposit', @@ -193,7 +195,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, - + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ [ @@ -216,6 +218,7 @@ class StageImportDataHandlerTest extends TestCase 'identifier' => 0, ], ], + ], ]; $accountRepos->shouldReceive('setUser')->once(); @@ -357,6 +360,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ @@ -394,6 +398,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ @@ -553,6 +558,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [ @@ -590,6 +596,7 @@ class StageImportDataHandlerTest extends TestCase 'piggy_bank_name' => null, 'bill_id' => null, 'bill_name' => null, + 'original-source' => sprintf('spectre-v%s', config('firefly.version')), // transaction data: 'transactions' => [