File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Services ;
2626
27- use Pterodactyl \Exceptions \Model \DataValidationException ;
2827use Pterodactyl \Models \Location ;
2928use Pterodactyl \Exceptions \DisplayException ;
29+ use Pterodactyl \Exceptions \Model \DataValidationException ;
3030
3131class LocationService
3232{
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public function testShouldThrowExceptionIfInvalidModelIdIsProvided()
192192 $ this ->service ->update (0 , []);
193193 }
194194
195- /**
195+ /*
196196 * Test that a location can be deleted normally when no nodes are attached.
197197 */
198198// public function testShouldDeleteExistingLocation()
@@ -211,7 +211,7 @@ public function testShouldThrowExceptionIfInvalidModelIdIsProvided()
211211// ]);
212212// }
213213
214- /**
214+ /*
215215 * Test that a location cannot be deleted if a node is attached to it.
216216 *
217217 * @expectedException \Pterodactyl\Exceptions\DisplayException
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ public function testShouldReturnNewUserWithPasswordTokenIfNoPasswordProvided()
108108
109109 public function testShouldUpdateUserModelInDatabase ()
110110 {
111- // $user = factory(User::class)->create();
111+ // $user = factory(User::class)->create();
112112//
113113// $response = $this->service->update($user, [
114114// 'email' => 'test_change@example.com',
@@ -126,7 +126,7 @@ public function testShouldUpdateUserModelInDatabase()
126126
127127 public function testShouldDeleteUserFromDatabase ()
128128 {
129- // $user = factory(User::class)->create();
129+ // $user = factory(User::class)->create();
130130// $service = $this->app->make(UserService::class);
131131//
132132// $response = $service->delete($user);
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Unit \Services ;
2626
27- use Illuminate \Contracts \Hashing \Hasher ;
28- use Illuminate \Database \Connection ;
2927use Mockery as m ;
28+ use Tests \TestCase ;
3029use Pterodactyl \Models \User ;
30+ use Illuminate \Database \Connection ;
31+ use Pterodactyl \Services \UserService ;
32+ use Illuminate \Contracts \Hashing \Hasher ;
3133use Pterodactyl \Notifications \AccountCreated ;
3234use Pterodactyl \Services \Helpers \TemporaryPasswordService ;
33- use Pterodactyl \Services \UserService ;
34- use Tests \TestCase ;
3535
3636class UserServiceTest extends TestCase
3737{
You can’t perform that action at this time.
0 commit comments