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() );