test #449
+1
@@ -122,6 +122,7 @@ class MainContentAllQueryService(
|
|||||||
sort = sort,
|
sort = sort,
|
||||||
offset = page.offset,
|
offset = page.offset,
|
||||||
limit = page.size + 1,
|
limit = page.size + 1,
|
||||||
|
locale = langContext.lang.code,
|
||||||
onlyPaid = onlyPaid,
|
onlyPaid = onlyPaid,
|
||||||
onlyFree = onlyFree,
|
onlyFree = onlyFree,
|
||||||
onlyPointAvailable = onlyPointAvailable
|
onlyPointAvailable = onlyPointAvailable
|
||||||
|
|||||||
+1
@@ -23,6 +23,7 @@ interface MainContentAllQueryPort {
|
|||||||
sort: ContentSort,
|
sort: ContentSort,
|
||||||
offset: Long,
|
offset: Long,
|
||||||
limit: Int,
|
limit: Int,
|
||||||
|
locale: String,
|
||||||
onlyPaid: Boolean = false,
|
onlyPaid: Boolean = false,
|
||||||
onlyFree: Boolean = false,
|
onlyFree: Boolean = false,
|
||||||
onlyPointAvailable: Boolean = false
|
onlyPointAvailable: Boolean = false
|
||||||
|
|||||||
+3
@@ -32,6 +32,7 @@ class MainContentAllQueryServiceTest {
|
|||||||
assertEquals(MainContentAllType.AUDIO, tab.type)
|
assertEquals(MainContentAllType.AUDIO, tab.type)
|
||||||
assertEquals("audio", port.lastListKind)
|
assertEquals("audio", port.lastListKind)
|
||||||
assertEquals(ContentSort.POPULAR, port.lastSort)
|
assertEquals(ContentSort.POPULAR, port.lastSort)
|
||||||
|
assertEquals("en", port.lastLocale)
|
||||||
assertEquals(20L, port.lastOffset)
|
assertEquals(20L, port.lastOffset)
|
||||||
assertEquals(21, port.lastLimit)
|
assertEquals(21, port.lastLimit)
|
||||||
assertTrue(port.lastOnlyPaid)
|
assertTrue(port.lastOnlyPaid)
|
||||||
@@ -186,6 +187,7 @@ private class FakeMainContentAllQueryPort : MainContentAllQueryPort {
|
|||||||
sort: ContentSort,
|
sort: ContentSort,
|
||||||
offset: Long,
|
offset: Long,
|
||||||
limit: Int,
|
limit: Int,
|
||||||
|
locale: String,
|
||||||
onlyPaid: Boolean,
|
onlyPaid: Boolean,
|
||||||
onlyFree: Boolean,
|
onlyFree: Boolean,
|
||||||
onlyPointAvailable: Boolean
|
onlyPointAvailable: Boolean
|
||||||
@@ -196,6 +198,7 @@ private class FakeMainContentAllQueryPort : MainContentAllQueryPort {
|
|||||||
lastSort = sort
|
lastSort = sort
|
||||||
lastOffset = offset
|
lastOffset = offset
|
||||||
lastLimit = limit
|
lastLimit = limit
|
||||||
|
lastLocale = locale
|
||||||
lastOnlyPaid = onlyPaid
|
lastOnlyPaid = onlyPaid
|
||||||
lastOnlyFree = onlyFree
|
lastOnlyFree = onlyFree
|
||||||
lastOnlyPointAvailable = onlyPointAvailable
|
lastOnlyPointAvailable = onlyPointAvailable
|
||||||
|
|||||||
Reference in New Issue
Block a user