Skip to content

Commit 05c5399

Browse files
committed
DL-16142 - remove feature flag
1 parent b26f39c commit 05c5399

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

app/config/ApplicationConfig.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,4 @@ class ApplicationConfig @Inject()(val conf: ServicesConfig,
7777
lazy val backToInformHMRCNrlUrl: Option[String] = Option(conf.getString("microservice.services.agent-client-mandate-frontend.informHMRCNrlUrl"))
7878

7979
def haveYouRegisteredUrl: String = conf.getString(s"microservice.services.awrs.haveYouRegisteredUrl")
80-
def enrolmentJourneyFeature: Boolean = Try(conf.getBoolean("feature.enrolmentJourney")).getOrElse(false)
8180
}

app/controllers/BusinessVerificationController.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class BusinessVerificationController @Inject()(val config: ApplicationConfig,
6969
rawBackLink <- currentBackLink
7070
backLink: Option[String] = rawBackLink.orElse {
7171
service match {
72-
case "awrs" if appConfig.enrolmentJourneyFeature => Some(appConfig.haveYouRegisteredUrl)
72+
case "awrs" => Some(appConfig.haveYouRegisteredUrl)
7373
case _ => rawBackLink
7474
}
7575
}

conf/application.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,3 @@ cancelRedirectUrl: "https://www.gov.uk/"
147147
allowedHosts = [
148148
"localhost"
149149
]
150-
151-
feature.enrolmentJourney = true

test/controllers/BusinessVerificationControllerSpec.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class BusinessVerificationControllerSpec
220220
}
221221
}
222222

223-
"redirect to 'haveYouRegisteredUrl' if service is 'awrs' and enrolmentJourneyFeature is true, and no backlink is found" in {
223+
"redirect to 'haveYouRegisteredUrl' if service is 'awrs', and no backlink is found" in {
224224
val mockAppConfig = mock[ApplicationConfig]
225225
val userId = s"user-${UUID.randomUUID}"
226226
val service = "awrs"
@@ -234,7 +234,6 @@ class BusinessVerificationControllerSpec
234234
).thenReturn(Future.successful(None))
235235
when(mockAppConfig.getNavTitle(service)).thenReturn(Some("bc.awrs.serviceName"))
236236
when(mockAppConfig.serviceList).thenReturn(List(service))
237-
when(mockAppConfig.enrolmentJourneyFeature).thenReturn(true)
238237
when(mockAppConfig.haveYouRegisteredUrl).thenReturn("http://localhost:9913/alcohol-wholesale-scheme/have-you-registered")
239238
when(mockAppConfig.businessTypeMap(service, isAgent = false)).thenReturn(Seq(
240239
"OBP" -> "bc.business-verification.PRT", "GROUP" -> "bc.business-verification.GROUP", "LTD" -> "bc.business-verification.LTD",

0 commit comments

Comments
 (0)