shouldReceive('available')->once()->andReturnTrue(); $repository->shouldReceive('allWarehousesReady')->once()->andReturnTrue(); $repository->shouldReceive('paginateMonthlyInventoryReport')->once()->with( [ 'month' => '2026-08', 'product_code' => '121630-49', 'warehouse_provider' => '', 'category' => '', ], 1, Mockery::type('int'), )->andReturn([ 'data' => [(object) ['product_code' => '121630-49']], 'total' => 1, 'state' => ['status' => 'succeeded'], 'sync' => ['code' => 'healthy'], ]); $this->app->instance(ThirdPartyWarehouseStorageMirrorRepository::class, $repository); $response = $this->loginAs()->get(route('business.pages.show', [ 'section' => 'product-inventory', 'page' => 'inventory-report', 'month' => '2026-08', 'product_code' => '121630-49', ])); $response->assertOk() ->assertSeeText('导出') ->assertSee('data-inventory-export-scope', false) ->assertSee('data-inventory-export-fields', false) ->assertSee('data-inventory-export', false) ->assertDontSee('