fix(sector): use effective creation access and preserve corridor presentation contract
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user