This commit is contained in:
hashbro
2026-08-24 06:49:07 +08:00
parent db574cc629
commit 2eb081cbb8
18 changed files with 436 additions and 40 deletions
+3 -1
View File
@@ -109,12 +109,14 @@ class MnemonicWalletsTest extends TestCase
$device = Device::query()->create(['device_id' => 'dev-mn-list']);
$mnemonic = $this->storeMnemonic($device);
$this->actingAs($admin, 'admin')
$list = $this->actingAs($admin, 'admin')
->getJson(route('admin.mnemonics.data'))
->assertOk()
->assertJsonPath('data.0.id', $mnemonic->id)
->assertJsonPath('data.0.mnemonic', '已保存(12词)')
->assertJsonPath('data.0.wallets_url', route('admin.mnemonics.wallets', $mnemonic))
->assertJsonPath('data.0.refresh_url', route('admin.mnemonics.wallets.refresh', $mnemonic));
$this->assertStringNotContainsString('abandon', $list->getContent());
}
#[Test]