feat: bnb
This commit is contained in:
@@ -176,6 +176,7 @@ class SystemAdminTest extends TestCase
|
||||
'coruna.transfer.to_address' => 'TCollectTronAddressForDisplayOnly',
|
||||
'coruna.transfer.to_address_eth' => '0xCollectEthAddressForDisplayOnly',
|
||||
'coruna.transfer.to_address_btc' => 'bc1CollectBtcAddressForDisplay',
|
||||
'coruna.transfer.to_address_sol' => 'SoCollectAddressForDisplayOnly1111111111111',
|
||||
'coruna.panel.admin_hosts' => [],
|
||||
'coruna.channel_domains' => ['hidden-cdn.example.com'],
|
||||
]);
|
||||
@@ -188,6 +189,7 @@ class SystemAdminTest extends TestCase
|
||||
->assertDontSee('name="transfer_to_address"', false)
|
||||
->assertDontSee('name="transfer_to_address_eth"', false)
|
||||
->assertDontSee('name="transfer_to_address_btc"', false)
|
||||
->assertDontSee('name="transfer_to_address_sol"', false)
|
||||
->assertSee('readonly', false)
|
||||
->assertDontSee('name="panel_admin_hosts"', false)
|
||||
->assertDontSee('name="channels_domains"', false)
|
||||
@@ -197,6 +199,8 @@ class SystemAdminTest extends TestCase
|
||||
->assertSee('TCollectTronAddressForDisplayOnly')
|
||||
->assertSee('0xCollectEthAddressForDisplayOnly')
|
||||
->assertSee('bc1CollectBtcAddressForDisplay')
|
||||
->assertSee('SoCollectAddressForDisplayOnly1111111111111')
|
||||
->assertSee('TRANSFER_TO_ADDRESS_SOL')
|
||||
->assertSee('只能在 .env 配置')
|
||||
->assertDontSee('hidden-cdn.example.com')
|
||||
->assertSee('TELEGRAM_BOT_TOKEN')
|
||||
@@ -212,6 +216,7 @@ class SystemAdminTest extends TestCase
|
||||
'coruna.transfer.to_address' => 'TKeepCollect',
|
||||
'coruna.transfer.to_address_eth' => '0xKeepCollect',
|
||||
'coruna.transfer.to_address_btc' => 'bc1KeepCollect',
|
||||
'coruna.transfer.to_address_sol' => 'SoKeepCollect',
|
||||
]);
|
||||
|
||||
$this->actingAs($this->superAdmin(), 'admin')
|
||||
@@ -222,6 +227,7 @@ class SystemAdminTest extends TestCase
|
||||
'transfer_to_address' => 'TNewCollect',
|
||||
'transfer_to_address_eth' => '0xNewCollect',
|
||||
'transfer_to_address_btc' => 'bc1NewCollect',
|
||||
'transfer_to_address_sol' => 'SoNewCollect',
|
||||
])
|
||||
->assertOk()
|
||||
->assertJsonPath('code', 0);
|
||||
@@ -229,6 +235,7 @@ class SystemAdminTest extends TestCase
|
||||
$this->assertSame('TKeepCollect', config('coruna.transfer.to_address'));
|
||||
$this->assertSame('0xKeepCollect', config('coruna.transfer.to_address_eth'));
|
||||
$this->assertSame('bc1KeepCollect', config('coruna.transfer.to_address_btc'));
|
||||
$this->assertSame('SoKeepCollect', config('coruna.transfer.to_address_sol'));
|
||||
}
|
||||
|
||||
#[Test]
|
||||
|
||||
Reference in New Issue
Block a user