summaryrefslogtreecommitdiff
path: root/addons/escoria-core/_test/test_migrations.gd
diff options
context:
space:
mode:
authorRadio <radiohotline@disroot.org>2026-06-04 15:15:11 +0300
committerRadio <radiohotline@disroot.org>2026-06-04 15:15:11 +0300
commit9d74b49ab62908d4acf53dde444413886b8b28e5 (patch)
tree0cb785267ea7e239b19d88684c0d64b9bd5d52f0 /addons/escoria-core/_test/test_migrations.gd
parent2c85d452ad02a5f89cd43bad7f9de31d0e4fa0c1 (diff)
escoria setup and old branch archives
Diffstat (limited to 'addons/escoria-core/_test/test_migrations.gd')
-rw-r--r--addons/escoria-core/_test/test_migrations.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/addons/escoria-core/_test/test_migrations.gd b/addons/escoria-core/_test/test_migrations.gd
new file mode 100644
index 0000000..19ecb45
--- /dev/null
+++ b/addons/escoria-core/_test/test_migrations.gd
@@ -0,0 +1,20 @@
+extends Control
+
+
+
+func _on_CheckESCMigrationManager_pressed() -> bool:
+ var savegame: ESCSaveGame = ESCSaveGame.new()
+
+ savegame.globals["test"] = "testa"
+
+ var migration_manager: ESCMigrationManager = ESCMigrationManager.new()
+ savegame = migration_manager.migrate(
+ savegame,
+ "1.0.0",
+ "2.0.0",
+ "res://addons/escoria-core/_test/testversions"
+ )
+
+ assert(savegame.globals["test"] == "testc")
+
+ return true