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

@@ -40,12 +40,21 @@ use FireflyIII\Support\Import\JobConfiguration\Spectre\ChooseAccountsHandler;
use Illuminate\Support\Collection;
use Mockery;
use Tests\TestCase;
use Log;
/**
* Class ChooseAccountsHandlerTest
*/
class ChooseAccountsHandlerTest extends TestCase
{
/**
*
*/
public function setUp(): void
{
parent::setUp();
Log::info(sprintf('Now in %s.', \get_class($this)));
}
/**
* @covers \FireflyIII\Support\Import\JobConfiguration\Spectre\ChooseAccountsHandler
*/

View File

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

View File

@@ -35,12 +35,21 @@ use FireflyIII\Support\Import\JobConfiguration\Spectre\DoAuthenticateHandler;
use Mockery;
use Preferences;
use Tests\TestCase;
use Log;
/**
* Class DoAuthenticateHandlerTest
*/
class DoAuthenticateHandlerTest extends TestCase
{
/**
*
*/
public function setUp(): void
{
parent::setUp();
Log::info(sprintf('Now in %s.', \get_class($this)));
}
/**
* No token in config, but grab it from users preferences.
*