agent foundation

This commit is contained in:
2026-03-06 00:44:52 +01:00
parent 9819cba733
commit 9a08f96c11
199 changed files with 8522 additions and 1880 deletions

View File

@@ -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,