From 10d00b7e96e69390183b3bba18f5b6ec5f6eb73d Mon Sep 17 00:00:00 2001 From: "SHAKIR, Muhammad" Date: Mon, 16 Sep 2024 17:48:17 +0100 Subject: [PATCH] fixed tests --- .../ApiIntegrationTestBase.cs | 2 +- .../RoleCapabilities/RoleCapabilitiesTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dfe.Academies.Academisation.SubcutaneousTest/ApiIntegrationTestBase.cs b/Dfe.Academies.Academisation.SubcutaneousTest/ApiIntegrationTestBase.cs index 1a2ad7d01..a99b395f1 100644 --- a/Dfe.Academies.Academisation.SubcutaneousTest/ApiIntegrationTestBase.cs +++ b/Dfe.Academies.Academisation.SubcutaneousTest/ApiIntegrationTestBase.cs @@ -177,7 +177,7 @@ private static void ConfigureAppConfiguration(IWebHostBuilder builder, string ap new ("AcademiesApiKey", "f6cbde5b-1252-4439-864c-16956af671d2"), new ("RoleIds:ConversionCreation", "ConversionCreation"), new ("RoleIds:TransferCreation", "TransferCreation"), - new ("RoleIds:Support", "Support") + new ("RoleIds:SuperAdmin", "SuperAdmin") }; configBuilder.AddInMemoryCollection(inMemorySettings!); }); diff --git a/Dfe.Academies.Academisation.SubcutaneousTest/RoleCapabilities/RoleCapabilitiesTests.cs b/Dfe.Academies.Academisation.SubcutaneousTest/RoleCapabilities/RoleCapabilitiesTests.cs index b86d5a9b8..4c6b81d0c 100644 --- a/Dfe.Academies.Academisation.SubcutaneousTest/RoleCapabilities/RoleCapabilitiesTests.cs +++ b/Dfe.Academies.Academisation.SubcutaneousTest/RoleCapabilities/RoleCapabilitiesTests.cs @@ -20,7 +20,7 @@ public RoleCapabilitiesTests() [Theory] [InlineData("ConversionCreation")] [InlineData("ConversionCreation", "TransferCreation")] - [InlineData("ConversionCreation", "TransferCreation", "Support")] + [InlineData("ConversionCreation", "TransferCreation", "SuperAdmin")] public async Task GetUserRoleCapabilities_ShouldReturnCapabilities(params string[] roles) { // Arrange