mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Send thanks button in more details fragment (#5424)
* Send thanks button in more details fragment * failing test fix * suggested fix
This commit is contained in:
parent
3c1cdf18a1
commit
495d001dc9
5 changed files with 109 additions and 6 deletions
|
|
@ -316,6 +316,9 @@ class MediaDetailFragmentUnitTests {
|
|||
@Test
|
||||
@Throws(Exception::class)
|
||||
fun testOnResume() {
|
||||
Whitebox.setInternalState(fragment, "applicationKvStore", applicationKvStore)
|
||||
`when`(applicationKvStore.getBoolean("login_skipped")).thenReturn(true)
|
||||
fragment.onCreateView(layoutInflater, null, savedInstanceState)
|
||||
fragment.onResume()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue