fix: test

This commit is contained in:
hashbro
2026-09-10 04:43:54 +08:00
parent 60d73cb689
commit 9333095103
4 changed files with 79 additions and 8 deletions
+19
View File
@@ -65,4 +65,23 @@ class WalletKeystoreTest extends TestCase
]),
);
}
#[Test]
public function string_wallet_bucket_does_not_break_listing(): void
{
$row = new WalletKeystore([
'source' => 'Trust Wallet',
'raw_json' => [
'kind' => 'keychain.wallets',
'wallets' => [
'trustwallet' => '{"device_uuid":"69DD25B2CA8B5682"}',
],
],
]);
$this->assertSame(1, $row->itemCount());
$this->assertSame('trustwallet', $row->listedItems()[0]['account']);
$this->assertSame('钥匙串', $row->kindLabel());
$this->assertNotSame('', $row->summary());
}
}