File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
app/src/test/kotlin/fr/free/nrw/commons/contributions Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,19 @@ class ContributionDaoTest {
108108 @Test
109109 fun migrateTableVersionFrom_v6_to_v7 () {
110110 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+ }
113115 }
114116
115117 @Test
116118 fun migrateTableVersionFrom_v7_to_v8 () {
117119 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+ }
120124 }
121125
122126 @Test
@@ -355,4 +359,4 @@ class ContributionDaoTest {
355359 contribution.wikiDataEntityId = " Q1"
356360 return contribution
357361 }
358- }
362+ }
You can’t perform that action at this time.
0 commit comments