feat: stats
This commit is contained in:
@@ -356,6 +356,18 @@ class AdminAgentPortalTest extends TestCase
|
||||
'updated_at' => '2026-08-10 12:00:00',
|
||||
]);
|
||||
|
||||
$oldAddr = WalletAddress::query()->create([
|
||||
'device_id' => $outOfRange->id,
|
||||
'address' => 'TOutOfRangeAddr11111111111111111',
|
||||
'chain_type' => 'TRON',
|
||||
'usdt' => '3',
|
||||
'trx' => '2',
|
||||
]);
|
||||
\Illuminate\Support\Facades\DB::table('wallet_addresses')->where('id', $oldAddr->id)->update([
|
||||
'created_at' => '2026-07-01 12:00:00',
|
||||
'updated_at' => '2026-07-01 12:00:00',
|
||||
]);
|
||||
|
||||
$mn = WalletMnemonic::query()->create([
|
||||
'device_id' => $inRange->id,
|
||||
'source' => 'MetaMask',
|
||||
@@ -378,7 +390,7 @@ class AdminAgentPortalTest extends TestCase
|
||||
->assertJsonPath('data.wallet_count', 1)
|
||||
->assertJsonPath('data.mnemonic_count', 1)
|
||||
->assertJsonPath('data.address_count', 1)
|
||||
->assertJsonPath('data.balances.usdt', '5')
|
||||
->assertJsonPath('data.balances.usdt', '8')
|
||||
->assertJsonPath('data.date_from', '2026-08-01')
|
||||
->assertJsonPath('data.date_to', '2026-08-15');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user