Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit b5ed006

Browse files
author
Alejo
committed
add migration tests
1 parent 126af7c commit b5ed006

File tree

1 file changed

+16
-0
lines changed
  • plugins/woocommerce/src/androidTest/java/org/wordpress/android/fluxc/persistence

1 file changed

+16
-0
lines changed

plugins/woocommerce/src/androidTest/java/org/wordpress/android/fluxc/persistence/MigrationTests.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,22 @@ class MigrationTests {
295295
}
296296
}
297297

298+
@Test
299+
fun testMigration34to35() {
300+
helper.apply {
301+
createDatabase(TEST_DB, 34).close()
302+
runMigrationsAndValidate(TEST_DB, 35, false)
303+
}
304+
}
305+
306+
@Test
307+
fun testMigration35to36() {
308+
helper.apply {
309+
createDatabase(TEST_DB, 35).close()
310+
runMigrationsAndValidate(TEST_DB, 36, false)
311+
}
312+
}
313+
298314
companion object {
299315
private const val TEST_DB = "migration-test"
300316
}

0 commit comments

Comments
 (0)