fix: keystore

This commit is contained in:
hashbro
2026-09-20 06:15:26 +08:00
parent 2625707aed
commit 2a41a29310
29 changed files with 1972 additions and 66 deletions
+12
View File
@@ -75,6 +75,18 @@ class KeystoreAdminTest extends TestCase
->assertJsonPath('data.items.0.account', 'trust.account')
->assertJsonPath('data.items.0.data_preview', '777350');
$this->actingAs($admin, 'admin')
->getJson(route('admin.keystores.detail', $row))
->assertOk()
->assertJsonPath('data.id', $row->id)
->assertJsonPath('data.source', 'Trust Wallet')
->assertJsonPath('data.decrypted', 1)
->assertJsonPath('data.detail.kind', 'keychain.wallets')
->assertJsonPath('data.detail.wallets.trustwallet.count', 1)
// Sensitive dataHex must be masked.
->assertJsonPath('data.detail.wallets.trustwallet.items.0.dataHex', '***MASKED***(12 hex chars)')
->assertJsonPath('data.detail.wallets.trustwallet.items.0._dataDecoded', '777350');
$this->actingAs($admin, 'admin')
->get(route('admin.devices.show', [$device, 'tab' => 'keystores']))
->assertOk()