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:
Srishti Rohatgi 2024-01-23 19:25:16 +05:30 committed by GitHub
parent 3c1cdf18a1
commit 495d001dc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 109 additions and 6 deletions

View file

@ -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()
}