agent foundation
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace MintyPHP\Tests\Service\Import;
|
||||
|
||||
use MintyPHP\Http\SessionStore;
|
||||
use MintyPHP\Service\Import\ImportStateStoreService;
|
||||
use MintyPHP\Service\Import\ImportTempFileService;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
@@ -16,7 +17,7 @@ class ImportStateStoreServiceTest extends TestCase
|
||||
public function testSetGetAndClearState(): void
|
||||
{
|
||||
$tempFileService = $this->createMock(ImportTempFileService::class);
|
||||
$stateStore = new ImportStateStoreService($tempFileService);
|
||||
$stateStore = new ImportStateStoreService($tempFileService, new SessionStore());
|
||||
|
||||
$stateStore->setState('token_a', ['token' => 'token_a', 'created_at' => time(), 'path' => '/tmp/a.csv']);
|
||||
$loaded = $stateStore->getState('token_a');
|
||||
@@ -34,7 +35,7 @@ class ImportStateStoreServiceTest extends TestCase
|
||||
->method('delete')
|
||||
->with('/tmp/expired.csv');
|
||||
|
||||
$stateStore = new ImportStateStoreService($tempFileService);
|
||||
$stateStore = new ImportStateStoreService($tempFileService, new SessionStore());
|
||||
$stateStore->setState('token_b', [
|
||||
'token' => 'token_b',
|
||||
'created_at' => time() - 7201,
|
||||
|
||||
Reference in New Issue
Block a user