From 910a2d7a2335597dd0a757aea40c77db7bfe6b96 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 3 Nov 2020 19:07:52 -0800 Subject: [PATCH] Back to checks all around --- .../Servers/BuildModificationServiceTest.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/tests/Integration/Services/Servers/BuildModificationServiceTest.php b/tests/Integration/Services/Servers/BuildModificationServiceTest.php index 1a4e81e2c..4444cc857 100644 --- a/tests/Integration/Services/Servers/BuildModificationServiceTest.php +++ b/tests/Integration/Services/Servers/BuildModificationServiceTest.php @@ -3,15 +3,12 @@ namespace Pterodactyl\Tests\Integration\Services\Servers; use Mockery; -use Exception; use Pterodactyl\Models\Server; use Pterodactyl\Models\Allocation; use Pterodactyl\Exceptions\DisplayException; -use GuzzleHttp\Exception\BadResponseException; use Pterodactyl\Tests\Integration\IntegrationTestCase; use Pterodactyl\Repositories\Wings\DaemonServerRepository; use Pterodactyl\Services\Servers\BuildModificationService; -use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException; class BuildModificationServiceTest extends IntegrationTestCase { @@ -114,12 +111,14 @@ class BuildModificationServiceTest extends IntegrationTestCase $this->daemonServerRepository->expects('update')->with(Mockery::on(function ($data) { $this->assertEquals([ - 'memory_limit' => 256, - 'swap' => 128, - 'io_weight' => 600, - 'cpu_limit' => 150, - 'threads' => '1,2', - 'disk_space' => 1024, + 'build' => [ + 'memory_limit' => 256, + 'swap' => 128, + 'io_weight' => 600, + 'cpu_limit' => 150, + 'threads' => '1,2', + 'disk_space' => 1024, + ], ], $data); return true;