+ @Test
+ fun `new posts are filtered using the given Sone`() {
+ val postVisibilityFilter = object : PostVisibilityFilter {
+ override fun isPostVisible(sone: Sone?, post: Post) = (sone == localSone) && (post == post2)
+ }
+ val newElements = NewElements(newPostNotification, newReplyNotification, localPostNotification, localReplyNotification, postVisibilityFilter, showAllReplies)
+ assertThat(newElements.newPosts(localSone), contains(post2))
+ }
+