Apply fixes from StyleCI (#519)
This commit is contained in:
parent
b7b046c044
commit
d908672644
4 changed files with 9 additions and 9 deletions
|
@ -24,9 +24,9 @@
|
||||||
|
|
||||||
namespace Pterodactyl\Services;
|
namespace Pterodactyl\Services;
|
||||||
|
|
||||||
use Pterodactyl\Exceptions\Model\DataValidationException;
|
|
||||||
use Pterodactyl\Models\Location;
|
use Pterodactyl\Models\Location;
|
||||||
use Pterodactyl\Exceptions\DisplayException;
|
use Pterodactyl\Exceptions\DisplayException;
|
||||||
|
use Pterodactyl\Exceptions\Model\DataValidationException;
|
||||||
|
|
||||||
class LocationService
|
class LocationService
|
||||||
{
|
{
|
||||||
|
|
|
@ -192,7 +192,7 @@ class LocationServiceTest extends TestCase
|
||||||
$this->service->update(0, []);
|
$this->service->update(0, []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* Test that a location can be deleted normally when no nodes are attached.
|
* Test that a location can be deleted normally when no nodes are attached.
|
||||||
*/
|
*/
|
||||||
// public function testShouldDeleteExistingLocation()
|
// 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.
|
* Test that a location cannot be deleted if a node is attached to it.
|
||||||
*
|
*
|
||||||
* @expectedException \Pterodactyl\Exceptions\DisplayException
|
* @expectedException \Pterodactyl\Exceptions\DisplayException
|
||||||
|
|
|
@ -108,7 +108,7 @@ class UserServiceTest extends TestCase
|
||||||
|
|
||||||
public function testShouldUpdateUserModelInDatabase()
|
public function testShouldUpdateUserModelInDatabase()
|
||||||
{
|
{
|
||||||
// $user = factory(User::class)->create();
|
// $user = factory(User::class)->create();
|
||||||
//
|
//
|
||||||
// $response = $this->service->update($user, [
|
// $response = $this->service->update($user, [
|
||||||
// 'email' => 'test_change@example.com',
|
// 'email' => 'test_change@example.com',
|
||||||
|
@ -126,7 +126,7 @@ class UserServiceTest extends TestCase
|
||||||
|
|
||||||
public function testShouldDeleteUserFromDatabase()
|
public function testShouldDeleteUserFromDatabase()
|
||||||
{
|
{
|
||||||
// $user = factory(User::class)->create();
|
// $user = factory(User::class)->create();
|
||||||
// $service = $this->app->make(UserService::class);
|
// $service = $this->app->make(UserService::class);
|
||||||
//
|
//
|
||||||
// $response = $service->delete($user);
|
// $response = $service->delete($user);
|
||||||
|
|
|
@ -24,14 +24,14 @@
|
||||||
|
|
||||||
namespace Tests\Unit\Services;
|
namespace Tests\Unit\Services;
|
||||||
|
|
||||||
use Illuminate\Contracts\Hashing\Hasher;
|
|
||||||
use Illuminate\Database\Connection;
|
|
||||||
use Mockery as m;
|
use Mockery as m;
|
||||||
|
use Tests\TestCase;
|
||||||
use Pterodactyl\Models\User;
|
use Pterodactyl\Models\User;
|
||||||
|
use Illuminate\Database\Connection;
|
||||||
|
use Pterodactyl\Services\UserService;
|
||||||
|
use Illuminate\Contracts\Hashing\Hasher;
|
||||||
use Pterodactyl\Notifications\AccountCreated;
|
use Pterodactyl\Notifications\AccountCreated;
|
||||||
use Pterodactyl\Services\Helpers\TemporaryPasswordService;
|
use Pterodactyl\Services\Helpers\TemporaryPasswordService;
|
||||||
use Pterodactyl\Services\UserService;
|
|
||||||
use Tests\TestCase;
|
|
||||||
|
|
||||||
class UserServiceTest extends TestCase
|
class UserServiceTest extends TestCase
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue