vmangos
This commit is contained in:
@@ -15,8 +15,8 @@ class BalancePaymentsFeatureTest extends TestCase
|
||||
parent::setUp();
|
||||
|
||||
config([
|
||||
'database.default' => 'azerothcore_auth',
|
||||
'database.connections.azerothcore_auth' => [
|
||||
'database.default' => 'vmangos_auth',
|
||||
'database.connections.vmangos_auth' => [
|
||||
'driver' => 'sqlite',
|
||||
'database' => ':memory:',
|
||||
'prefix' => '',
|
||||
@@ -38,7 +38,7 @@ class BalancePaymentsFeatureTest extends TestCase
|
||||
'services.robokassa.tears_per_ruble' => 10,
|
||||
]);
|
||||
|
||||
DB::purge('azerothcore_auth');
|
||||
DB::purge('vmangos_auth');
|
||||
$migration = require database_path('migrations/2026_07_19_000001_create_moonwell_balance_tables.php');
|
||||
$migration->up();
|
||||
}
|
||||
@@ -60,12 +60,12 @@ class BalancePaymentsFeatureTest extends TestCase
|
||||
|
||||
$this->assertSame('1', $parameters['IsTest']);
|
||||
$this->assertSame('1000.00', app(BalanceService::class)->balance(7));
|
||||
$this->assertDatabaseCount('balance_transactions', 1, 'azerothcore_auth');
|
||||
$this->assertDatabaseCount('balance_transactions', 1, 'vmangos_auth');
|
||||
}
|
||||
|
||||
public function test_game_spending_is_atomic_and_idempotent(): void
|
||||
{
|
||||
DB::connection('azerothcore_auth')->table('account_balances')->insert([
|
||||
DB::connection('vmangos_auth')->table('account_balances')->insert([
|
||||
'account_id' => 7,
|
||||
'balance' => '100.00',
|
||||
'created_at' => now(),
|
||||
@@ -78,7 +78,7 @@ class BalancePaymentsFeatureTest extends TestCase
|
||||
|
||||
$this->assertSame($first->id, $second->id);
|
||||
$this->assertSame('74.50', $balances->balance(7));
|
||||
$this->assertDatabaseCount('balance_transactions', 1, 'azerothcore_auth');
|
||||
$this->assertDatabaseCount('balance_transactions', 1, 'vmangos_auth');
|
||||
}
|
||||
|
||||
public function test_production_mode_uses_production_credentials_and_disables_test_flag(): void
|
||||
|
||||
Reference in New Issue
Block a user