♻️ Use SoneRequest instead of FreenetRequest
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / pages / WebPageTest.kt
index d654b09..e3d3410 100644 (file)
@@ -59,6 +59,7 @@ open class WebPageTest(pageSupplier: (Template, WebInterface) -> SoneTemplatePag
                whenever(freenetRequest.l10n).thenReturn(l10n)
                whenever(freenetRequest.uri).thenReturn(mock())
        }
                whenever(freenetRequest.l10n).thenReturn(l10n)
                whenever(freenetRequest.uri).thenReturn(mock())
        }
+       val soneRequest by lazy { freenetRequest.toSoneRequest(core, webInterface) }
        val templateContext = TemplateContext()
        val toadletContext = deepMock<ToadletContext>()
        val responseContent = ByteArrayOutputStream()
        val templateContext = TemplateContext()
        val toadletContext = deepMock<ToadletContext>()
        val responseContent = ByteArrayOutputStream()