mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-16 06:29:36 +00:00
Ran rector and made tests final
This commit is contained in:
parent
43d72faf48
commit
b21d294cf8
162 changed files with 407 additions and 393 deletions
|
|
@ -28,7 +28,7 @@ use App\Entity\UserSystem\User;
|
|||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class APIDocsAvailabilityTest extends WebTestCase
|
||||
final class APIDocsAvailabilityTest extends WebTestCase
|
||||
{
|
||||
#[DataProvider('urlProvider')]
|
||||
public function testDocAvailabilityForLoggedInUser(string $url): void
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
|
|||
use App\DataFixtures\APITokenFixtures;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use ApiPlatform\Symfony\Bundle\Test\Client;
|
||||
class APITokenAuthenticationTest extends ApiTestCase
|
||||
final class APITokenAuthenticationTest extends ApiTestCase
|
||||
{
|
||||
public function testUnauthenticated(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\AuthenticatedApiTestCase;
|
||||
|
||||
class ApiTokenEnpointTest extends AuthenticatedApiTestCase
|
||||
final class ApiTokenEnpointTest extends AuthenticatedApiTestCase
|
||||
{
|
||||
public function testGetCurrentToken(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class AttachmentTypeEndpointTest extends CrudEndpointTestCase
|
||||
final class AttachmentTypeEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\AuthenticatedApiTestCase;
|
||||
|
||||
class AttachmentsEndpointTest extends AuthenticatedApiTestCase
|
||||
final class AttachmentsEndpointTest extends AuthenticatedApiTestCase
|
||||
{
|
||||
public function testGetCollection(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class CategoryEndpointTest extends CrudEndpointTestCase
|
||||
final class CategoryEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ declare(strict_types=1);
|
|||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
|
||||
class CurrencyEndpointTest extends CrudEndpointTestCase
|
||||
final class CurrencyEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class FootprintsEndpointTest extends CrudEndpointTestCase
|
||||
final class FootprintsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace API\Endpoints;
|
|||
|
||||
use App\Tests\API\AuthenticatedApiTestCase;
|
||||
|
||||
class InfoEndpointTest extends AuthenticatedApiTestCase
|
||||
final class InfoEndpointTest extends AuthenticatedApiTestCase
|
||||
{
|
||||
public function testGetInfo(): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class ManufacturersEndpointTest extends CrudEndpointTestCase
|
||||
final class ManufacturersEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class MeasurementUnitsEndpointTest extends CrudEndpointTestCase
|
||||
final class MeasurementUnitsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class OrderdetailsEndpointTest extends CrudEndpointTestCase
|
||||
final class OrderdetailsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class ParametersEndpointTest extends CrudEndpointTestCase
|
||||
final class ParametersEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class PartAssociationsEndpointTest extends CrudEndpointTestCase
|
||||
final class PartAssociationsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class PartCustomStateEndpointTest extends CrudEndpointTestCase
|
||||
final class PartCustomStateEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class PartEndpointTest extends CrudEndpointTestCase
|
||||
final class PartEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class PartLotsEndpointTest extends CrudEndpointTestCase
|
||||
final class PartLotsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class PricedetailsEndpointTest extends CrudEndpointTestCase
|
||||
final class PricedetailsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class ProjectBOMEntriesEndpointTest extends CrudEndpointTestCase
|
||||
final class ProjectBOMEntriesEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class ProjectsEndpointTest extends CrudEndpointTestCase
|
||||
final class ProjectsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class StorageLocationsEndpointTest extends CrudEndpointTestCase
|
||||
final class StorageLocationsEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace App\Tests\API\Endpoints;
|
|||
|
||||
use App\Tests\API\Endpoints\CrudEndpointTestCase;
|
||||
|
||||
class SuppliersEndpointTest extends CrudEndpointTestCase
|
||||
final class SuppliersEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Tests\API\Endpoints;
|
||||
|
||||
class UsersEndpointTest extends CrudEndpointTestCase
|
||||
final class UsersEndpointTest extends CrudEndpointTestCase
|
||||
{
|
||||
|
||||
protected function getBasePath(): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue