File tree 2 files changed +5
-3
lines changed
main/java/fr/free/nrw/commons/feedback
test/kotlin/fr/free/nrw/commons/feedback 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import android .content .Context ;
4
4
import fr .free .nrw .commons .R ;
5
+ import fr .free .nrw .commons .auth .AccountUtil ;
5
6
import fr .free .nrw .commons .feedback .model .Feedback ;
6
7
import fr .free .nrw .commons .utils .LangCodeUtils ;
7
8
import java .util .Locale ;
@@ -29,7 +30,9 @@ public void init() {
29
30
30
31
stringBuilder = new StringBuilder ();
31
32
stringBuilder .append ("== " );
32
- stringBuilder .append ("Feedback from ~~~ for version " );
33
+ stringBuilder .append ("Feedback from " );
34
+ stringBuilder .append (AccountUtil .getUserName (context ));
35
+ stringBuilder .append (" for version " );
33
36
stringBuilder .append (feedback .getVersion ());
34
37
stringBuilder .append (" ==" );
35
38
stringBuilder .append ("\n " );
Original file line number Diff line number Diff line change @@ -24,14 +24,13 @@ class FeedbackContentCreatorUnitTests {
24
24
private lateinit var creator: FeedbackContentCreator
25
25
private lateinit var feedback: Feedback
26
26
27
- @Mock
28
27
private lateinit var context: Context
29
28
30
29
@Before
31
30
fun setup () {
32
31
MockitoAnnotations .initMocks(this )
33
32
AppAdapter .set(TestAppAdapter ())
34
- context = RuntimeEnvironment .application.applicationContext
33
+ context = FakeContextWrapper ( RuntimeEnvironment .application.applicationContext)
35
34
}
36
35
37
36
@Test
You can’t perform that action at this time.
0 commit comments