fix(sector): use effective creation access and preserve corridor presentation contract
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-28 21:35:21 +02:00
parent 502e3ec4d5
commit 789fffd098
12 changed files with 73 additions and 16 deletions
@@ -20,6 +20,10 @@ final class InvestorUsabilityScopeTest extends TestCase
$actor=User::factory()->create();
$this->actingAs($actor)->get('/sectores/turismo')->assertOk();
$this->assertSame(0,DB::table('portal_role_assignments')->where('user_id',$actor->id)->count());
config(['portal.profile_access_enabled'=>true]);
$entry=app(\App\Services\SectorInvestment::class)->publicView(\App\Models\Sector::where('slug','turismo')->firstOrFail());
$this->assertSame('/perfil/promotor',$entry['register_href']);
$this->assertSame('Pedir acesso para cadastrar oportunidades',$entry['register_label']);
}
public function test_zones_all_equals_visible_set_and_province_and_district_never_fall_back_to_all():void