截单时间
This commit is contained in:
@@ -106,7 +106,7 @@ class MiniProductTest extends ProcurementTestCase
|
||||
$this->assertNull($row['price']);
|
||||
}
|
||||
|
||||
/** 商品列表:先按分类树展示顺序(深度优先),同分类内按商品 sort 降序、id 升序,未入树分类排最后 */
|
||||
/** 商品列表:先按分类树展示顺序(深度优先),同分类内按商品 sort 升序、id 升序,未入树分类排最后 */
|
||||
public function test_product_list_ordered_by_category_tree(): void
|
||||
{
|
||||
$rootA = ProductCategoryModel::create(['name' => '蔬菜', 'parent_id' => 0, 'sort' => 0, 'status' => 1]);
|
||||
@@ -123,8 +123,8 @@ class MiniProductTest extends ProcurementTestCase
|
||||
|
||||
$ids = array_column($this->getJson('/mini/product/list')->assertOk()->json('data.data'), 'id');
|
||||
|
||||
// 树序:rootA → leafA2 → leafA1 → rootB;leafA2 内 sort 降序;无分类排最后
|
||||
$this->assertSame([$pA2High->id, $pA2Low->id, $pA1->id, $pB->id, $pNone->id], $ids);
|
||||
// 树序:rootA → leafA2 → leafA1 → rootB;leafA2 内 sort 升序;无分类排最后
|
||||
$this->assertSame([$pA2Low->id, $pA2High->id, $pA1->id, $pB->id, $pNone->id], $ids);
|
||||
}
|
||||
|
||||
/** 商品列表:登录门店附加购物车行ID与数量,响应附悬浮球汇总 */
|
||||
|
||||
Reference in New Issue
Block a user