mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 20:34:48 +00:00
Disable all kinds of tests until upgrades are complete.
This commit is contained in:
@@ -113,37 +113,37 @@ class BunqJobConfigurationTest extends TestCase
|
||||
$this->assertEquals($return, $config->configureJob($configData));
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\JobConfiguration\BunqJobConfiguration
|
||||
*/
|
||||
public function testGetNextData(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'bunq_jc_C' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
$job->file_type = '';
|
||||
$job->configuration = [];
|
||||
$job->save();
|
||||
$data = ['ssome' => 'values'];
|
||||
/**
|
||||
* @covers \FireflyIII\Import\JobConfiguration\BunqJobConfiguration
|
||||
*/
|
||||
public function testGetNextData(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once();
|
||||
$job = new ImportJob;
|
||||
$job->user_id = $this->user()->id;
|
||||
$job->key = 'bunq_jc_C' . random_int(1, 10000);
|
||||
$job->status = 'new';
|
||||
$job->stage = 'new';
|
||||
$job->provider = 'bunq';
|
||||
$job->file_type = '';
|
||||
$job->configuration = [];
|
||||
$job->save();
|
||||
$data = ['ssome' => 'values'];
|
||||
|
||||
// Expect "NewBunqJobHandler" because of state.
|
||||
$handler = $this->mock(NewBunqJobHandler::class);
|
||||
$handler->shouldReceive('setImportJob')->once();
|
||||
$handler->shouldReceive('getNextData')->once()->andReturn($data);
|
||||
// Expect "NewBunqJobHandler" because of state.
|
||||
$handler = $this->mock(NewBunqJobHandler::class);
|
||||
$handler->shouldReceive('setImportJob')->once();
|
||||
$handler->shouldReceive('getNextData')->once()->andReturn($data);
|
||||
|
||||
$config = new BunqJobConfiguration;
|
||||
try {
|
||||
$config->setImportJob($job);
|
||||
} catch (FireflyException $e) {
|
||||
$this->assertTrue(false, $e->getMessage());
|
||||
}
|
||||
$this->assertEquals($data, $config->getNextData());
|
||||
$config = new BunqJobConfiguration;
|
||||
try {
|
||||
$config->setImportJob($job);
|
||||
} catch (FireflyException $e) {
|
||||
$this->assertTrue(false, $e->getMessage());
|
||||
}
|
||||
$this->assertEquals($data, $config->getNextData());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers \FireflyIII\Import\JobConfiguration\BunqJobConfiguration
|
||||
|
||||
@@ -52,7 +52,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCC(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -66,7 +66,6 @@ class FakeJobConfigurationTest extends TestCase
|
||||
$job->save();
|
||||
|
||||
|
||||
|
||||
// should be false:
|
||||
$configurator = new FakeJobConfiguration;
|
||||
$configurator->setImportJob($job);
|
||||
@@ -80,7 +79,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCAlbumFalse(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -106,7 +105,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCApplyRules(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -134,7 +133,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCBadAlbum(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -165,7 +164,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCBadInfo(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -195,7 +194,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCGoodAlbum(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -226,7 +225,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testCCGoodNewInfo(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -536,7 +535,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testGetNextViewAlbum(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -563,7 +562,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testGetNextViewArtist(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -590,7 +589,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testGetNextViewRules(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
@@ -617,7 +616,7 @@ class FakeJobConfigurationTest extends TestCase
|
||||
*/
|
||||
public function testGetNextViewSong(): void
|
||||
{
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos = $this->mock(ImportJobRepositoryInterface::class);
|
||||
$jobRepos->shouldReceive('setUser')->once()->atLeast();
|
||||
|
||||
$job = new ImportJob;
|
||||
|
||||
@@ -33,9 +33,10 @@ use FireflyIII\Support\Import\JobConfiguration\File\ConfigureRolesHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\File\ConfigureUploadHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\File\NewFileJobHandler;
|
||||
use Illuminate\Support\MessageBag;
|
||||
use Log;
|
||||
use Mockery;
|
||||
use Tests\TestCase;
|
||||
use Log;
|
||||
|
||||
/**
|
||||
* Class FileJobConfigurationTest
|
||||
*/
|
||||
|
||||
@@ -33,8 +33,8 @@ use FireflyIII\Support\Import\JobConfiguration\Spectre\ChooseLoginHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Spectre\DoAuthenticateHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Spectre\NewSpectreJobHandler;
|
||||
use Illuminate\Support\MessageBag;
|
||||
use Tests\TestCase;
|
||||
use Log;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* Class SpectreJobConfigurationTest
|
||||
|
||||
@@ -24,12 +24,9 @@ declare(strict_types=1);
|
||||
namespace Tests\Unit\Import\JobConfiguration;
|
||||
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Import\JobConfiguration\BunqJobConfiguration;
|
||||
use FireflyIII\Import\JobConfiguration\YnabJobConfiguration;
|
||||
use FireflyIII\Models\ImportJob;
|
||||
use FireflyIII\Repositories\ImportJob\ImportJobRepositoryInterface;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Bunq\ChooseAccountsHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Bunq\NewBunqJobHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Ynab\NewYnabJobHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Ynab\SelectAccountsHandler;
|
||||
use FireflyIII\Support\Import\JobConfiguration\Ynab\SelectBudgetHandler;
|
||||
|
||||
Reference in New Issue
Block a user