From 433d4d966589241802d06d05f3a26351441ed809 Mon Sep 17 00:00:00 2001 From: zhoushengchen <3057083327@qq.com> Date: Wed, 23 Sep 2026 17:14:06 +0800 Subject: [PATCH] test: assert reverse quote stays under quote management --- tests/Feature/Business/QuoteManagementPageTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Feature/Business/QuoteManagementPageTest.php b/tests/Feature/Business/QuoteManagementPageTest.php index 246f5603..7ab6e501 100644 --- a/tests/Feature/Business/QuoteManagementPageTest.php +++ b/tests/Feature/Business/QuoteManagementPageTest.php @@ -127,6 +127,13 @@ class QuoteManagementPageTest extends FeatureTestCase public function testReverseLogisticsQuoteTabCanBeOpenedDirectly(): void { + $courierPayables = collect(config('business_navigation')) + ->firstWhere('slug', 'courier-payables'); + + $this->assertIsArray($courierPayables); + $this->assertContains('quote-management', array_column($courierPayables['pages'], 'slug')); + $this->assertNotContains('reverse-logistics-quotes', array_column($courierPayables['pages'], 'slug')); + $this->user->attachPermission( Permission::where('name', 'read-admin-panel')->firstOrFail() );