File tree 1 file changed +9
-5
lines changed
app/src/test/kotlin/fr/free/nrw/commons/contributions
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,19 @@ class ContributionDaoTest {
108
108
@Test
109
109
fun migrateTableVersionFrom_v6_to_v7 () {
110
110
Table .onUpdate(database, 6 , 7 )
111
- // Table didn't change in version 7
112
- verifyZeroInteractions(database)
111
+ // Table has changed in version 7
112
+ inOrder(database) {
113
+ verify<SQLiteDatabase >(database).execSQL(Table .ADD_WIKI_DATA_ENTITY_ID_FIELD )
114
+ }
113
115
}
114
116
115
117
@Test
116
118
fun migrateTableVersionFrom_v7_to_v8 () {
117
119
Table .onUpdate(database, 7 , 8 )
118
- // Table didn't change in version 8
119
- verifyZeroInteractions(database)
120
+ // Table has changed in version 8
121
+ inOrder(database) {
122
+ verify<SQLiteDatabase >(database).execSQL(Table .ADD_WIKI_DATA_ENTITY_ID_FIELD )
123
+ }
120
124
}
121
125
122
126
@Test
@@ -355,4 +359,4 @@ class ContributionDaoTest {
355
359
contribution.wikiDataEntityId = " Q1"
356
360
return contribution
357
361
}
358
- }
362
+ }
You can’t perform that action at this time.
0 commit comments