Update tests so repositories are not called. Saves on DB calls, speeds up tests.

This commit is contained in:
James Cole
2018-09-04 09:52:19 +02:00
parent 46ba0a5a5a
commit 07edbe758a
111 changed files with 1524 additions and 98 deletions

View File

@@ -38,12 +38,22 @@ use FireflyIII\Support\Import\Routine\Spectre\StageAuthenticatedHandler;
use Mockery;
use Preferences;
use Tests\TestCase;
use Log;
/**
* Class StageAuthenticatedHandlerTest
*/
class StageAuthenticatedHandlerTest extends TestCase
{
/**
*
*/
public function setUp(): void
{
parent::setUp();
Log::info(sprintf('Now in %s.', \get_class($this)));
}
/**
* Already have logins in configuration.
*

View File

@@ -36,12 +36,21 @@ use FireflyIII\Support\Import\Routine\File\OpposingAccountMapper;
use FireflyIII\Support\Import\Routine\Spectre\StageImportDataHandler;
use Mockery;
use Tests\TestCase;
use Log;
/**
* Class StageImportDataHandlerTest
*/
class StageImportDataHandlerTest extends TestCase
{
/**
*
*/
public function setUp(): void
{
parent::setUp();
Log::info(sprintf('Now in %s.', \get_class($this)));
}
/**
* @covers \FireflyIII\Support\Import\Routine\Spectre\StageImportDataHandler
*/

View File

@@ -39,13 +39,21 @@ use FireflyIII\Support\Import\Routine\Spectre\StageNewHandler;
use Mockery;
use Preferences;
use Tests\TestCase;
use Log;
/**
* Class StageNewHandlerTest
*/
class StageNewHandlerTest extends TestCase
{
/**
*
*/
public function setUp(): void
{
parent::setUp();
Log::info(sprintf('Now in %s.', \get_class($this)));
}
// todo run() with zero logins and an existing customer (must be retrieved from Spectre).
// todo run() with one login and an existing customer (must be retrieved from Spectre).