Fix test for mark as known page
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 2 Oct 2017 09:58:27 +0000 (11:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 2 Oct 2017 09:58:27 +0000 (11:58 +0200)
src/test/kotlin/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPageTest.kt

index b2db4c1..c867c96 100644 (file)
@@ -26,7 +26,7 @@ class MarkAsKnownAjaxPageTest : JsonPageTest("markAsKnown.ajax", requiresLogin =
        @Test
        fun `request with unknown sone returns successfully`() {
                addRequestParameter("type", "sone")
-               addRequestParameter("sone", "invalid")
+               addRequestParameter("id", "invalid")
                assertThat(json.isSuccess, equalTo(true))
                verify(core, never()).markSoneKnown(any())
        }