tests: assert json diff between import/export

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-07-27 20:38:13 +02:00
parent 4b9bae2753
commit 0af05d62b7
6 changed files with 185 additions and 99 deletions

View File

@@ -65,13 +65,13 @@ class DeckJsonServiceTest extends \Test\TestCase {
$data = json_decode(file_get_contents(__DIR__ . '/../../../../data/deck.json'));
$importService->setData($data);
$configInstance = json_decode(file_get_contents(__DIR__ . '/../../../../data/config-trelloJson.json'));
$configInstance = json_decode(file_get_contents(__DIR__ . '/../../../../data/config-deckJson.json'));
$importService->setConfigInstance($configInstance);
$owner = $this->createMock(IUser::class);
$owner
->method('getUID')
->willReturn('owner');
->willReturn('admin');
$importService->setConfig('owner', $owner);
$this->service->setImportService($importService);