修复抖音账户发生时间筛选与导出验收 #166
File diff suppressed because one or more lines are too long
@ -217,14 +217,17 @@ class PagesTest extends FeatureTestCase
|
||||
]);
|
||||
}
|
||||
|
||||
public function testDouyinAccountBillsExportUsesSelectedColumnOrder(): void
|
||||
public function testDouyinAccountBillsExportUsesDateFiltersAndSelectedColumnOrder(): void
|
||||
{
|
||||
$this->user->attachPermission(
|
||||
Permission::where('name', 'read-admin-panel')->firstOrFail()
|
||||
);
|
||||
|
||||
$repository = Mockery::mock(StoreReceivingDouyinBillMirrorRepository::class);
|
||||
$repository->shouldReceive('exportRows')->once()->with([], 'occurred_at', 'desc')->andReturn([[
|
||||
$repository->shouldReceive('exportRows')->once()->with([
|
||||
'start' => '2026-09-09',
|
||||
'end' => '2026-09-09',
|
||||
], 'occurred_at', 'desc')->andReturn([[
|
||||
'record_code' => '9001',
|
||||
'payload' => [
|
||||
'move_scene' => '头条放心购',
|
||||
@ -235,6 +238,8 @@ class PagesTest extends FeatureTestCase
|
||||
|
||||
$response = $this->loginAs()->get(route('ecommerce-finance.account-bills.export', [
|
||||
'bill_type' => 'douyin',
|
||||
'start' => '2026-09-09',
|
||||
'end' => '2026-09-09',
|
||||
'columns' => 'payload.move_scene,record_code,payload.settle_account',
|
||||
]));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user