Skip to content

Commit

Permalink
test(migration): test already migrated shipments are skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 27, 2023
1 parent a4398b4 commit bf5b2aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
/** @var \MyParcelNL\PrestaShop\Migration\Pdk\PdkOrderShipmentsMigration $migration */
$migration = Pdk::get(PdkOrderShipmentsMigration::class);
$migration->up();
$migration->up(); // done twice to test that it doesn't migrate shipments with the same id twice

$pdkOrder = $pdkOrderRepository->get(1);
$psOrderShipments = $psOrderShipmentRepository
Expand Down Expand Up @@ -157,7 +158,6 @@
'date_upd' => '2023-04-06 14:31:25',
],
[

'id_order' => 1,
'id_order_label' => 3,
'status' => 'pending - registered',
Expand Down

0 comments on commit bf5b2aa

Please sign in to comment.