Skip to content

Commit

Permalink
Update FixturesController test
Browse files Browse the repository at this point in the history
  • Loading branch information
domlander committed Jun 12, 2024
1 parent 98fe4b9 commit 9b52695
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sport/test/controllers/FixturesControllerTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ import org.scalatest.matchers.should.Matchers
with WithMaterializer
with BeforeAndAfterAll
with WithTestApplicationContext
with WithTestWsClient {
with WithTestWsClient
with WithTestContentApiClient {

val fixturesUrl = "/football/fixtures"
val fixtureForUrl = "/football/fixtures/2012/oct/20"
val tag = "premierleague"

lazy val fixturesController =
new FixturesController(testCompetitionsService, play.api.test.Helpers.stubControllerComponents())
new FixturesController(
testCompetitionsService,
play.api.test.Helpers.stubControllerComponents(),
testContentApiClient,
)

"can load the all fixtures page" in {
val result = fixturesController.allFixtures()(TestRequest())
Expand Down

0 comments on commit 9b52695

Please sign in to comment.