Created
November 2, 2019 18:32
-
-
Save Kpeved/639a52ea1663c638b3d5954c205b69b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val contentResolver :ContentResolver = mock { | |
on { | |
query( | |
same(ContactsContract.CommonDataKinds.Phone.CONTENT_URI), | |
anyOrNull(), | |
anyOrNull(), | |
anyOrNull(), | |
anyOrNull()) | |
} doReturn phoneNumbersRoboCursor | |
on { | |
query( | |
same(ContactsContract.Data.CONTENT_URI), | |
anyOrNull(), | |
anyOrNull(), | |
anyOrNull(), | |
anyOrNull()) | |
} doReturn allContactsRoboCursor | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment