Refactor obscure service names to be clearer

This commit is contained in:
Dane Everitt 2017-08-27 15:10:51 -05:00
parent a91d84ecfe
commit 67ac36f5ce
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
25 changed files with 96 additions and 341 deletions

View file

@ -31,11 +31,11 @@ use Illuminate\Contracts\Hashing\Hasher;
use Illuminate\Database\ConnectionInterface;
use Illuminate\Notifications\ChannelManager;
use Pterodactyl\Notifications\AccountCreated;
use Pterodactyl\Services\Users\CreationService;
use Pterodactyl\Services\Users\UserCreationService;
use Pterodactyl\Services\Helpers\TemporaryPasswordService;
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
class CreationServiceTest extends TestCase
class UserCreationServiceTest extends TestCase
{
/**
* @var \Illuminate\Foundation\Application
@ -68,7 +68,7 @@ class CreationServiceTest extends TestCase
protected $repository;
/**
* @var \Pterodactyl\Services\Users\CreationService
* @var \Pterodactyl\Services\Users\UserCreationService
*/
protected $service;
@ -86,7 +86,7 @@ class CreationServiceTest extends TestCase
$this->passwordService = m::mock(TemporaryPasswordService::class);
$this->repository = m::mock(UserRepositoryInterface::class);
$this->service = new CreationService(
$this->service = new UserCreationService(
$this->appMock,
$this->notification,
$this->database,

View file

@ -27,12 +27,12 @@ namespace Tests\Unit\Services\Users;
use Mockery as m;
use Tests\TestCase;
use Pterodactyl\Models\User;
use Pterodactyl\Services\Users\DeletionService;
use Pterodactyl\Services\Users\UserDeletionService;
use Illuminate\Contracts\Translation\Translator;
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
class DeletionServiceTest extends TestCase
class UserDeletionServiceTest extends TestCase
{
/**
* @var \Pterodactyl\Contracts\Repository\UserRepositoryInterface
@ -50,7 +50,7 @@ class DeletionServiceTest extends TestCase
protected $serverRepository;
/**
* @var \Pterodactyl\Services\Users\DeletionService
* @var \Pterodactyl\Services\Users\UserDeletionService
*/
protected $service;
@ -71,7 +71,7 @@ class DeletionServiceTest extends TestCase
$this->translator = m::mock(Translator::class);
$this->serverRepository = m::mock(ServerRepositoryInterface::class);
$this->service = new DeletionService(
$this->service = new UserDeletionService(
$this->serverRepository,
$this->translator,
$this->repository

View file

@ -27,10 +27,10 @@ namespace Tests\Unit\Services\Users;
use Mockery as m;
use Tests\TestCase;
use Illuminate\Contracts\Hashing\Hasher;
use Pterodactyl\Services\Users\UpdateService;
use Pterodactyl\Services\Users\UserUpdateService;
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
class UpdateServiceTest extends TestCase
class UserUpdateServiceTest extends TestCase
{
/**
* @var \Illuminate\Contracts\Hashing\Hasher
@ -43,7 +43,7 @@ class UpdateServiceTest extends TestCase
protected $repository;
/**
* @var \Pterodactyl\Services\Users\UpdateService
* @var \Pterodactyl\Services\Users\UserUpdateService
*/
protected $service;
@ -57,7 +57,7 @@ class UpdateServiceTest extends TestCase
$this->hasher = m::mock(Hasher::class);
$this->repository = m::mock(UserRepositoryInterface::class);
$this->service = new UpdateService($this->hasher, $this->repository);
$this->service = new UserUpdateService($this->hasher, $this->repository);
}
/**