feat: Let occ deck:import default to deck json importer

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-07-19 09:52:44 +02:00
parent cccc4f2f67
commit e7d5fbff63
7 changed files with 146 additions and 17 deletions

View File

@@ -118,6 +118,9 @@ class BoardImportServiceTest extends \Test\TestCase {
$this->trelloJsonService
->method('getJsonSchemaPath')
->willReturn($configFile);
$this->trelloJsonService
->method('getBoards')
->willReturn([$data]);
$this->boardImportService->setImportSystem($this->trelloJsonService);
$owner = $this->createMock(IUser::class);
@@ -192,8 +195,7 @@ class BoardImportServiceTest extends \Test\TestCase {
->expects($this->once())
->method('insert');
$actual = $this->boardImportService->import();
$this->assertNull($actual);
$this->boardImportService->import();
self::assertTrue(true);
}
}