Reorganize API files

This commit is contained in:
Dane Everitt 2018-01-19 19:58:57 -06:00
parent bdadec002c
commit 0e7f8cedf0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
41 changed files with 156 additions and 111 deletions

View file

@ -4,7 +4,7 @@ namespace Tests\Unit\Http\Middleware\Api\Admin;
use Pterodactyl\Models\ApiKey;
use Tests\Unit\Http\Middleware\MiddlewareTestCase;
use Pterodactyl\Http\Middleware\Api\Admin\AuthenticateIPAccess;
use Pterodactyl\Http\Middleware\Api\Application\AuthenticateIPAccess;
class AuthenticateIPAccessTest extends MiddlewareTestCase
{
@ -65,7 +65,7 @@ class AuthenticateIPAccessTest extends MiddlewareTestCase
/**
* Return an instance of the middleware to be used when testing.
*
* @return \Pterodactyl\Http\Middleware\Api\Admin\AuthenticateIPAccess
* @return \Pterodactyl\Http\Middleware\Api\Application\AuthenticateIPAccess
*/
private function getMiddleware(): AuthenticateIPAccess
{

View file

@ -9,9 +9,9 @@ use Illuminate\Auth\AuthManager;
use Illuminate\Contracts\Encryption\Encrypter;
use Tests\Unit\Http\Middleware\MiddlewareTestCase;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Pterodactyl\Http\Middleware\Api\Admin\AuthenticateKey;
use Pterodactyl\Exceptions\Repository\RecordNotFoundException;
use Pterodactyl\Contracts\Repository\ApiKeyRepositoryInterface;
use Pterodactyl\Http\Middleware\Api\Application\AuthenticateKey;
class AuthenticateKeyTest extends MiddlewareTestCase
{
@ -117,7 +117,7 @@ class AuthenticateKeyTest extends MiddlewareTestCase
/**
* Return an instance of the middleware with mocked dependencies for testing.
*
* @return \Pterodactyl\Http\Middleware\Api\Admin\AuthenticateKey
* @return \Pterodactyl\Http\Middleware\Api\Application\AuthenticateKey
*/
private function getMiddleware(): AuthenticateKey
{

View file

@ -3,7 +3,7 @@
namespace Tests\Unit\Http\Middleware\Api\Admin;
use Tests\Unit\Http\Middleware\MiddlewareTestCase;
use Pterodactyl\Http\Middleware\Api\Admin\AuthenticateUser;
use Pterodactyl\Http\Middleware\Api\Application\AuthenticateUser;
class AuthenticateUserTest extends MiddlewareTestCase
{
@ -44,7 +44,7 @@ class AuthenticateUserTest extends MiddlewareTestCase
/**
* Return an instance of the middleware for testing.
*
* @return \Pterodactyl\Http\Middleware\Api\Admin\AuthenticateUser
* @return \Pterodactyl\Http\Middleware\Api\Application\AuthenticateUser
*/
private function getMiddleware(): AuthenticateUser
{

View file

@ -7,7 +7,7 @@ use Barryvdh\Debugbar\LaravelDebugbar;
use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Foundation\Application;
use Tests\Unit\Http\Middleware\MiddlewareTestCase;
use Pterodactyl\Http\Middleware\Api\Admin\SetSessionDriver;
use Pterodactyl\Http\Middleware\Api\Application\SetSessionDriver;
class SetSessionDriverTest extends MiddlewareTestCase
{
@ -60,7 +60,7 @@ class SetSessionDriverTest extends MiddlewareTestCase
/**
* Return an instance of the middleware with mocked dependencies for testing.
*
* @return \Pterodactyl\Http\Middleware\Api\Admin\SetSessionDriver
* @return \Pterodactyl\Http\Middleware\Api\Application\SetSessionDriver
*/
private function getMiddleware(): SetSessionDriver
{