Fix tests broken by bad namespaces
This commit is contained in:
parent
44a00c3957
commit
f9542c98e2
4 changed files with 5 additions and 5 deletions
|
@ -11,6 +11,7 @@ use Pterodactyl\Services\Locations\LocationDeletionService;
|
||||||
use Pterodactyl\Contracts\Repository\LocationRepositoryInterface;
|
use Pterodactyl\Contracts\Repository\LocationRepositoryInterface;
|
||||||
use Pterodactyl\Transformers\Api\Application\LocationTransformer;
|
use Pterodactyl\Transformers\Api\Application\LocationTransformer;
|
||||||
use Pterodactyl\Http\Controllers\Api\Application\ApplicationApiController;
|
use Pterodactyl\Http\Controllers\Api\Application\ApplicationApiController;
|
||||||
|
use Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationRequest;
|
||||||
use Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationsRequest;
|
use Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationsRequest;
|
||||||
use Pterodactyl\Http\Requests\Api\Application\Locations\DeleteLocationRequest;
|
use Pterodactyl\Http\Requests\Api\Application\Locations\DeleteLocationRequest;
|
||||||
use Pterodactyl\Http\Requests\Api\Application\Locations\UpdateLocationRequest;
|
use Pterodactyl\Http\Requests\Api\Application\Locations\UpdateLocationRequest;
|
||||||
|
@ -77,7 +78,7 @@ class LocationController extends ApplicationApiController
|
||||||
/**
|
/**
|
||||||
* Return a single location.
|
* Return a single location.
|
||||||
*
|
*
|
||||||
* @param \Pterodactyl\Http\Controllers\Api\Application\Locations\GetLocationRequest $request
|
* @param \Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationRequest $request
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function view(GetLocationRequest $request): array
|
public function view(GetLocationRequest $request): array
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Pterodactyl\Http\Controllers\Api\Application\Locations;
|
namespace Pterodactyl\Http\Requests\Api\Application\Locations;
|
||||||
|
|
||||||
use Pterodactyl\Models\Location;
|
use Pterodactyl\Models\Location;
|
||||||
use Pterodactyl\Http\Requests\Api\Application\Locations\GetLocationsRequest;
|
|
||||||
|
|
||||||
class GetLocationRequest extends GetLocationsRequest
|
class GetLocationRequest extends GetLocationsRequest
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,9 @@ use PHPUnit\Framework\Assert;
|
||||||
use Pterodactyl\Models\ApiKey;
|
use Pterodactyl\Models\ApiKey;
|
||||||
use Pterodactyl\Services\Acl\Api\AdminAcl;
|
use Pterodactyl\Services\Acl\Api\AdminAcl;
|
||||||
use Tests\Traits\Integration\CreatesTestModels;
|
use Tests\Traits\Integration\CreatesTestModels;
|
||||||
use Tests\Traits\IntegrationJsonRequestAssertions;
|
|
||||||
use Pterodactyl\Tests\Integration\IntegrationTestCase;
|
use Pterodactyl\Tests\Integration\IntegrationTestCase;
|
||||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||||
|
use Tests\Traits\Http\IntegrationJsonRequestAssertions;
|
||||||
use Pterodactyl\Transformers\Api\Application\BaseTransformer;
|
use Pterodactyl\Transformers\Api\Application\BaseTransformer;
|
||||||
use Pterodactyl\Transformers\Api\Client\BaseClientTransformer;
|
use Pterodactyl\Transformers\Api\Client\BaseClientTransformer;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Tests\Traits;
|
namespace Tests\Traits\Http;
|
||||||
|
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Illuminate\Foundation\Testing\TestResponse;
|
use Illuminate\Foundation\Testing\TestResponse;
|
||||||
|
|
Loading…
Reference in a new issue