mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
make sure randomly selected journals match prerequisites.
This commit is contained in:
@@ -258,9 +258,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextDataUploadConfig()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -289,9 +289,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextDataUploadInvalid()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'ksksjje'];
|
||||
$config = ['stage' => 'ksksjje'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -313,9 +313,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextDataUploadMap()
|
||||
{
|
||||
// data:
|
||||
$config = ['stage' => 'map'];
|
||||
$config = ['stage' => 'map'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -344,9 +344,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextDataUploadReady()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'ready'];
|
||||
$config = ['stage' => 'ready'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -368,9 +368,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextDataUploadRoles()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'roles'];
|
||||
$config = ['stage' => 'roles'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -397,9 +397,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewInitial()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'initial'];
|
||||
$config = ['stage' => 'initial'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -426,9 +426,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewInvalid()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'slkds903ms90k'];
|
||||
$config = ['stage' => 'slkds903ms90k'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -450,9 +450,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewMap()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'map'];
|
||||
$config = ['stage' => 'map'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -491,9 +491,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewReady()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'ready'];
|
||||
$config = ['stage' => 'ready'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -515,9 +515,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewRoles()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'roles'];
|
||||
$config = ['stage' => 'roles'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -542,9 +542,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetNextViewUploadConfig()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -569,9 +569,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testGetWarningMessage()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -609,9 +609,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testIsJobConfiguredFalse()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$config = ['stage' => 'upload-config'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
@@ -648,9 +648,9 @@ class FileConfiguratorTest extends TestCase
|
||||
public function testIsJobConfiguredTrue()
|
||||
{
|
||||
// data
|
||||
$config = ['stage' => 'ready'];
|
||||
$config = ['stage' => 'ready'];
|
||||
$extended = ['steps' => 0, 'done' => 0];
|
||||
$job = $this->getJob($config);
|
||||
$job = $this->getJob($config);
|
||||
|
||||
// mock repos
|
||||
$repository = $this->mock(ImportJobRepositoryInterface::class);
|
||||
|
||||
@@ -155,7 +155,7 @@ class AmountTest extends TestCase
|
||||
'€1,44' => '1.44',
|
||||
'(33.52)' => '-33.52',
|
||||
'€(63.12)' => '-63.12',
|
||||
'($182.77)' => '-182.77',
|
||||
'($182.77)' => '-182.77',
|
||||
];
|
||||
foreach ($values as $value => $expected) {
|
||||
$converter = new Amount;
|
||||
|
||||
@@ -57,7 +57,7 @@ class AssetAccountIbansTest extends TestCase
|
||||
$this->assertCount(3, $mapping);
|
||||
// assert this is what the result looks like:
|
||||
$result = [
|
||||
0 => strval(trans('import.map_do_not_map')),
|
||||
0 => strval(trans('import.map_do_not_map')),
|
||||
53 => 'Else',
|
||||
17 => 'IBAN (Something)',
|
||||
];
|
||||
|
||||
@@ -23,7 +23,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Import\MapperPreProcess;
|
||||
|
||||
use FireflyIII\Import\MapperPreProcess\TagsComma;
|
||||
use FireflyIII\Import\MapperPreProcess\TagsSpace;
|
||||
use Tests\TestCase;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user