Improve coverage for Spectre.

This commit is contained in:
James Cole
2018-05-21 19:17:33 +02:00
parent 94e6816bf6
commit b195a61498
3 changed files with 462 additions and 60 deletions

View File

@@ -43,11 +43,12 @@ class DoAuthenticateHandlerTest extends TestCase
{
/**
* No token in config, but grab it from users preferences.
*
* @covers \FireflyIII\Support\Import\Information\GetSpectreTokenTrait
* @covers \FireflyIII\Support\Import\JobConfiguration\Spectre\DoAuthenticateHandler
*/
public function testGetNextDataNoToken(): void
{
$job = new ImportJob;
$job->user_id = $this->user()->id;
$job->key = 'sda-A' . random_int(1, 1000);