mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-05 22:05:47 -05:00
chore: update composer dependencies (#5198)
Signed-off-by: Matthew Penner <me@matthewp.io>
This commit is contained in:
@@ -168,7 +168,7 @@ class BuildModificationServiceTest extends IntegrationTestCase
|
||||
public function testNoExceptionIsThrownIfOnlyRemovingAllocation()
|
||||
{
|
||||
$server = $this->createServerModel();
|
||||
/** @var \Pterodactyl\Models\Allocation $allocation */
|
||||
/** @var Allocation $allocation */
|
||||
$allocation = Allocation::factory()->create(['node_id' => $server->node_id, 'server_id' => $server->id]);
|
||||
|
||||
$this->daemonServerRepository->expects('setServer->sync')->andReturnUndefined();
|
||||
@@ -191,7 +191,7 @@ class BuildModificationServiceTest extends IntegrationTestCase
|
||||
public function testAllocationInBothAddAndRemoveIsAdded()
|
||||
{
|
||||
$server = $this->createServerModel();
|
||||
/** @var \Pterodactyl\Models\Allocation $allocation */
|
||||
/** @var Allocation $allocation */
|
||||
$allocation = Allocation::factory()->create(['node_id' => $server->node_id]);
|
||||
|
||||
$this->daemonServerRepository->expects('setServer->sync')->andReturnUndefined();
|
||||
@@ -210,9 +210,9 @@ class BuildModificationServiceTest extends IntegrationTestCase
|
||||
public function testUsingSameAllocationIdMultipleTimesDoesNotError()
|
||||
{
|
||||
$server = $this->createServerModel();
|
||||
/** @var \Pterodactyl\Models\Allocation $allocation */
|
||||
/** @var Allocation $allocation */
|
||||
$allocation = Allocation::factory()->create(['node_id' => $server->node_id, 'server_id' => $server->id]);
|
||||
/** @var \Pterodactyl\Models\Allocation $allocation2 */
|
||||
/** @var Allocation $allocation2 */
|
||||
$allocation2 = Allocation::factory()->create(['node_id' => $server->node_id]);
|
||||
|
||||
$this->daemonServerRepository->expects('setServer->sync')->andReturnUndefined();
|
||||
@@ -235,7 +235,7 @@ class BuildModificationServiceTest extends IntegrationTestCase
|
||||
public function testThatUpdatesAreRolledBackIfExceptionIsEncountered()
|
||||
{
|
||||
$server = $this->createServerModel();
|
||||
/** @var \Pterodactyl\Models\Allocation $allocation */
|
||||
/** @var Allocation $allocation */
|
||||
$allocation = Allocation::factory()->create(['node_id' => $server->node_id]);
|
||||
|
||||
$this->daemonServerRepository->expects('setServer->sync')->andThrows(new DisplayException('Test'));
|
||||
|
||||
Reference in New Issue
Block a user