This commit is contained in:
2026-07-28 16:28:36 +08:00
parent 9ba53b6145
commit 64d760af1a
5 changed files with 50 additions and 11 deletions
@@ -235,17 +235,17 @@ $assertSame(
'non-shipment callbacks must not change local fulfillment'
);
$assertSame(
true,
false,
EjPharmacyShipmentPolicy::isCompletedEvent(['event_type' => 'WORKFLOW_STEP_COMPLETED', 'status' => 'COMPLETED', 'final' => true]),
'a final EJ workflow callback must be recognized as order completion'
'a final EJ workflow callback must remain a process update, not order completion'
);
$assertSame(
3,
2,
EjPharmacyShipmentPolicy::nextFulfillmentStatus(
2,
['event_type' => 'WORKFLOW_STEP_COMPLETED', 'status' => 'COMPLETED', 'final' => true]
),
'a final EJ workflow callback must advance ZYT fulfillment to completed'
'a final EJ workflow callback must not change ZYT fulfillment'
);
$assertSame(
2,
@@ -424,7 +424,6 @@ $assertSame(
$assertSame(
true,
str_contains($controllerSource, '订单药房流转制作中')
&& str_contains($controllerSource, '订单已完成')
&& str_contains($controllerSource, '流程:')
&& str_contains($controllerSource, '药房:洛阳药房')
&& str_contains($controllerSource, "implode(\$isWorkflowStep ? ' | ' : '', \$summaryParts)"),