Skip to content

Commit 3b50439

Browse files
committed
Revert "Fix tests after TaskType::documentEdition removal"
This reverts commit e17e0bb.
1 parent 9fd8f54 commit 3b50439

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Endpoints/DocumentsTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,11 @@ public function testAddDocumentsCsvInBatchesWithDelimiter(): void
374374
case 1:
375375
self::assertSame(["id;title\n888221515;Young folks", null, ';'], [$documents, $primaryKey, $delimiter]);
376376

377-
return MockTask::create(TaskType::DocumentAdditionOrUpdate);
377+
return MockTask::create(TaskType::DocumentEdition);
378378
case 2:
379379
self::assertSame(["id;title\n235115704;Mister Klein", null, ';'], [$documents, $primaryKey, $delimiter]);
380380

381-
return MockTask::create(TaskType::DocumentAdditionOrUpdate);
381+
return MockTask::create(TaskType::DocumentEdition);
382382
default:
383383
self::fail();
384384
}
@@ -857,11 +857,11 @@ public function testUpdateDocumentsCsvInBatchesWithDelimiter(): void
857857
case 1:
858858
self::assertSame(["id;title\n888221515;Young folks", null, ';'], [$documents, $primaryKey, $delimiter]);
859859

860-
return MockTask::create(TaskType::DocumentAdditionOrUpdate);
860+
return MockTask::create(TaskType::DocumentEdition);
861861
case 2:
862862
self::assertSame(["id;title\n235115704;Mister Klein", null, ';'], [$documents, $primaryKey, $delimiter]);
863863

864-
return MockTask::create(TaskType::DocumentAdditionOrUpdate);
864+
return MockTask::create(TaskType::DocumentEdition);
865865
default:
866866
self::fail();
867867
}

0 commit comments

Comments
 (0)