统一账号作用域 Key 对齐 Android,新增缓存 schema 迁移清理旧数据,并同步更新相关模块与单元测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
511 B
Swift
23 lines
511 B
Swift
//
|
|
// AppStoreTestSupport.swift
|
|
// suixinkanTests
|
|
//
|
|
|
|
@testable import suixinkan
|
|
|
|
extension AppSessionStore {
|
|
|
|
/// 为需要账号作用域缓存的测试建立完整且稳定的账号上下文。
|
|
func configureTestAccount(
|
|
userId: String = "test-user",
|
|
accountType: AppAccountType = .scenicUser,
|
|
scenicId: Int? = nil
|
|
) {
|
|
self.userId = userId
|
|
self.accountType = accountType
|
|
if let scenicId {
|
|
currentScenicId = scenicId
|
|
}
|
|
}
|
|
}
|