fix(tests): realign test expectations with V011 (ADM-001) seed — 22 permisos + Medios fixture

This commit is contained in:
2026-04-16 19:04:06 -03:00
parent f672de78ce
commit a1a8e6e0cb
6 changed files with 20 additions and 6 deletions

View File

@@ -174,12 +174,13 @@ public class RolPermisoRepositoryTests : IAsyncLifetime
// ── GetByRolCodigoAsync ──────────────────────────────────────────────────
[Fact]
public async Task GetByRolCodigoAsync_Admin_Returns21Permisos()
public async Task GetByRolCodigoAsync_Admin_Returns22Permisos()
{
// admin has 18 permisos from V006 + 3 new admin permisos from V007 (UDT-006) = 21 total
// admin has 18 permisos from V006 + 3 new admin permisos from V007 (UDT-006)
// + 1 from V011 (ADM-001): 'administracion:secciones:gestionar' = 22 total
var permisos = await _repository.GetByRolCodigoAsync("admin");
Assert.Equal(21, permisos.Count);
Assert.Equal(22, permisos.Count);
}
[Fact]