diff --git a/app/Services/LocationService.php b/app/Services/LocationService.php index 72373e0e8..a6139e0d8 100644 --- a/app/Services/LocationService.php +++ b/app/Services/LocationService.php @@ -24,9 +24,9 @@ namespace Pterodactyl\Services; -use Pterodactyl\Exceptions\Model\DataValidationException; use Pterodactyl\Models\Location; use Pterodactyl\Exceptions\DisplayException; +use Pterodactyl\Exceptions\Model\DataValidationException; class LocationService { diff --git a/tests/Feature/Services/LocationServiceTest.php b/tests/Feature/Services/LocationServiceTest.php index 176f83523..7e885070c 100644 --- a/tests/Feature/Services/LocationServiceTest.php +++ b/tests/Feature/Services/LocationServiceTest.php @@ -192,7 +192,7 @@ class LocationServiceTest extends TestCase $this->service->update(0, []); } - /** + /* * Test that a location can be deleted normally when no nodes are attached. */ // public function testShouldDeleteExistingLocation() @@ -211,7 +211,7 @@ class LocationServiceTest extends TestCase // ]); // } - /** + /* * Test that a location cannot be deleted if a node is attached to it. * * @expectedException \Pterodactyl\Exceptions\DisplayException diff --git a/tests/Feature/Services/UserServiceTest.php b/tests/Feature/Services/UserServiceTest.php index cc743381a..85775e5a2 100644 --- a/tests/Feature/Services/UserServiceTest.php +++ b/tests/Feature/Services/UserServiceTest.php @@ -108,7 +108,7 @@ class UserServiceTest extends TestCase public function testShouldUpdateUserModelInDatabase() { -// $user = factory(User::class)->create(); + // $user = factory(User::class)->create(); // // $response = $this->service->update($user, [ // 'email' => 'test_change@example.com', @@ -126,7 +126,7 @@ class UserServiceTest extends TestCase public function testShouldDeleteUserFromDatabase() { -// $user = factory(User::class)->create(); + // $user = factory(User::class)->create(); // $service = $this->app->make(UserService::class); // // $response = $service->delete($user); diff --git a/tests/Unit/Services/UserServiceTest.php b/tests/Unit/Services/UserServiceTest.php index b97f37af2..0f3951958 100644 --- a/tests/Unit/Services/UserServiceTest.php +++ b/tests/Unit/Services/UserServiceTest.php @@ -24,14 +24,14 @@ namespace Tests\Unit\Services; -use Illuminate\Contracts\Hashing\Hasher; -use Illuminate\Database\Connection; use Mockery as m; +use Tests\TestCase; use Pterodactyl\Models\User; +use Illuminate\Database\Connection; +use Pterodactyl\Services\UserService; +use Illuminate\Contracts\Hashing\Hasher; use Pterodactyl\Notifications\AccountCreated; use Pterodactyl\Services\Helpers\TemporaryPasswordService; -use Pterodactyl\Services\UserService; -use Tests\TestCase; class UserServiceTest extends TestCase {