Apply fixes from StyleCI (#590)

This commit is contained in:
Dane Everitt
2017-08-15 23:21:01 -05:00
committed by GitHub
parent 1260a8384a
commit 46cb71e69d
13 changed files with 47 additions and 48 deletions

View File

@@ -90,7 +90,7 @@ class OptionCreationServiceTest extends TestCase
$this->repository->shouldReceive('findCountWhere')->with([
['service_id', '=', $data['service_id']],
['id', '=', $data['config_from']]
['id', '=', $data['config_from']],
])->once()->andReturn(1);
$this->repository->shouldReceive('create')->with($data)
@@ -109,7 +109,7 @@ class OptionCreationServiceTest extends TestCase
{
$this->repository->shouldReceive('findCountWhere')->with([
['service_id', '=', null],
['id', '=', 1]
['id', '=', 1],
])->once()->andReturn(0);
try {

View File

@@ -25,11 +25,11 @@
namespace Tests\Unit\Services\Services\Options;
use Mockery as m;
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
use Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface;
use Pterodactyl\Exceptions\Services\HasActiveServersException;
use Pterodactyl\Services\Services\Options\OptionDeletionService;
use Tests\TestCase;
use Pterodactyl\Exceptions\Services\HasActiveServersException;
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
use Pterodactyl\Services\Services\Options\OptionDeletionService;
use Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface;
class OptionDeletionServiceTest extends TestCase
{

View File

@@ -26,11 +26,11 @@ namespace Tests\Unit\Services\Services\Options;
use Exception;
use Mockery as m;
use Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface;
use Pterodactyl\Exceptions\Services\ServiceOption\NoParentConfigurationFoundException;
use Tests\TestCase;
use Pterodactyl\Models\ServiceOption;
use Pterodactyl\Services\Services\Options\OptionUpdateService;
use Tests\TestCase;
use Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface;
use Pterodactyl\Exceptions\Services\ServiceOption\NoParentConfigurationFoundException;
class OptionUpdateServiceTest extends TestCase
{