PostgreSQL Support (#4486)
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
This commit is contained in:
parent
21613fa602
commit
3bf5a71802
223 changed files with 912 additions and 1052 deletions
|
@ -109,7 +109,7 @@ class StartupModificationServiceTest extends IntegrationTestCase
|
|||
|
||||
$clone = $this->cloneEggAndVariables($server->egg);
|
||||
// This makes the BUNGEE_VERSION variable not user editable.
|
||||
$clone->variables()->first()->update([
|
||||
$clone->variables()->orderBy('id')->first()->update([
|
||||
'user_editable' => false,
|
||||
]);
|
||||
|
||||
|
@ -118,7 +118,7 @@ class StartupModificationServiceTest extends IntegrationTestCase
|
|||
|
||||
ServerVariable::query()->updateOrCreate([
|
||||
'server_id' => $server->id,
|
||||
'variable_id' => $server->variables[0]->id,
|
||||
'variable_id' => $server->variables()->orderBy('id')->first()->id,
|
||||
], ['variable_value' => 'EXIST']);
|
||||
|
||||
$response = $this->getService()->handle($server, [
|
||||
|
@ -128,9 +128,10 @@ class StartupModificationServiceTest extends IntegrationTestCase
|
|||
],
|
||||
]);
|
||||
|
||||
$this->assertCount(2, $response->variables);
|
||||
$this->assertSame('EXIST', $response->variables[0]->server_value);
|
||||
$this->assertSame('test.jar', $response->variables[1]->server_value);
|
||||
$variables = $response->variables->sortBy('server_value')->values();
|
||||
$this->assertCount(2, $variables);
|
||||
$this->assertSame('EXIST', $variables->get(0)->server_value);
|
||||
$this->assertSame('test.jar', $variables->get(1)->server_value);
|
||||
|
||||
$response = $this->getService()
|
||||
->setUserLevel(User::USER_LEVEL_ADMIN)
|
||||
|
@ -141,9 +142,11 @@ class StartupModificationServiceTest extends IntegrationTestCase
|
|||
],
|
||||
]);
|
||||
|
||||
$this->assertCount(2, $response->variables);
|
||||
$this->assertSame('1234', $response->variables[0]->server_value);
|
||||
$this->assertSame('test.jar', $response->variables[1]->server_value);
|
||||
$variables = $response->variables->sortBy('server_value')->values();
|
||||
|
||||
$this->assertCount(2, $variables);
|
||||
$this->assertSame('1234', $variables->get(0)->server_value);
|
||||
$this->assertSame('test.jar', $variables->get(1)->server_value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue