续费下单 end2end 流程测试补齐 require_subscription=1 断言
This commit is contained in:
@@ -60,6 +60,8 @@ class AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest extends Te
|
|||||||
// 订阅详情页的“创建续费订单”链接 back 应该回到订阅详情自身
|
// 订阅详情页的“创建续费订单”链接 back 应该回到订阅详情自身
|
||||||
$expectedBack = '/admin/site-subscriptions/' . $sub->id;
|
$expectedBack = '/admin/site-subscriptions/' . $sub->id;
|
||||||
$subShow->assertSee('back=' . urlencode($expectedBack), false);
|
$subShow->assertSee('back=' . urlencode($expectedBack), false);
|
||||||
|
$subShow->assertSee('order_type=renewal', false);
|
||||||
|
$subShow->assertSee('require_subscription=1', false);
|
||||||
|
|
||||||
// 2) 打开创建页(携带默认值 + back)
|
// 2) 打开创建页(携带默认值 + back)
|
||||||
$createUrl = '/admin/platform-orders/create?'
|
$createUrl = '/admin/platform-orders/create?'
|
||||||
@@ -67,6 +69,7 @@ class AdminSubscriptionRenewalCreatePlatformOrderEndToEndBackFlowTest extends Te
|
|||||||
. '&plan_id=' . $plan->id
|
. '&plan_id=' . $plan->id
|
||||||
. '&site_subscription_id=' . $sub->id
|
. '&site_subscription_id=' . $sub->id
|
||||||
. '&order_type=renewal'
|
. '&order_type=renewal'
|
||||||
|
. '&require_subscription=1'
|
||||||
. '&quantity=1'
|
. '&quantity=1'
|
||||||
. '&remark=' . urlencode('来自订阅:' . $sub->subscription_no)
|
. '&remark=' . urlencode('来自订阅:' . $sub->subscription_no)
|
||||||
. '&back=' . urlencode($expectedBack);
|
. '&back=' . urlencode($expectedBack);
|
||||||
|
|||||||
Reference in New Issue
Block a user