refactor: platform orders index order_no link use Arr::query back

This commit is contained in:
萝卜
2026-03-13 22:23:24 +00:00
parent 976a9537c2
commit 6a666b4c2a
2 changed files with 6 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class AdminPlatformOrderIndexOrderNoLinkWithBackTest extends TestCase
$res = $this->get('/admin/platform-orders?status=pending');
$res->assertOk();
$expectedBack = urlencode('/admin/platform-orders?status=pending');
$res->assertSee('/admin/platform-orders/' . $order->id . '?back=' . $expectedBack, false);
$expectedBack = \Illuminate\Support\Arr::query(['back' => '/admin/platform-orders?status=pending']);
$res->assertSee('/admin/platform-orders/' . $order->id . '?' . $expectedBack, false);
}
}