fix: test
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user