Skip to content

Commit 8ff05fe

Browse files
committed
Make test classes to final
1 parent 47dc206 commit 8ff05fe

File tree

246 files changed

+250
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+250
-245
lines changed

compose.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22
php:
33
container_name: symfony-backend-php-fpm
44
hostname: php-fpm
5+
stop_signal: SIGKILL
56
build:
67
context: .
78
dockerfile: ./Dockerfile_dev
@@ -26,6 +27,7 @@ services:
2627
nginx:
2728
container_name: symfony-backend-nginx
2829
hostname: nginx
30+
stop_signal: SIGKILL
2931
build:
3032
context: ./docker/nginx/
3133
dockerfile: ./Dockerfile_dev
@@ -44,6 +46,7 @@ services:
4446
mariadb:
4547
container_name: symfony-backend-mariadb
4648
hostname: mariadb
49+
stop_signal: SIGKILL
4750
build:
4851
context: ./docker/mariadb/
4952
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
@@ -58,6 +61,7 @@ services:
5861
container_name: symfony-backend-dozzle
5962
hostname: dozzle
6063
image: amir20/dozzle
64+
stop_signal: SIGKILL
6165
ports:
6266
- "8100:8080"
6367
volumes:
@@ -67,6 +71,7 @@ services:
6771
container_name: symfony-backend-adminer
6872
hostname: adminer
6973
image: adminer
74+
stop_signal: SIGKILL
7075
environment:
7176
ADMINER_DEFAULT_SERVER: mariadb
7277
ADMINER_DESIGN: pepa-linha-dark

tests/DataFixtures/AppFixtures.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package App\DataFixtures
1717
* @author TLe, Tarmo Leppänen <[email protected]>
1818
*/
19-
class AppFixtures extends Fixture
19+
final class AppFixtures extends Fixture
2020
{
2121
#[Override]
2222
public function load(ObjectManager $manager): void

tests/E2E/Controller/HealthzControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Controller
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class HealthzControllerTest extends WebTestCase
20+
final class HealthzControllerTest extends WebTestCase
2121
{
2222
/**
2323
* @throws Throwable

tests/E2E/Controller/IndexControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package App\Tests\E2E\Controller
1717
* @author TLe, Tarmo Leppänen <[email protected]>
1818
*/
19-
class IndexControllerTest extends WebTestCase
19+
final class IndexControllerTest extends WebTestCase
2020
{
2121
/**
2222
* @throws Throwable

tests/E2E/Controller/VersionControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class VersionControllerTest extends WebTestCase
22+
final class VersionControllerTest extends WebTestCase
2323
{
2424
/**
2525
* @throws Throwable

tests/E2E/Controller/v1/ApiKey/ApiKeyControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\ApiKey
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class ApiKeyControllerTest extends WebTestCase
22+
final class ApiKeyControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/api_key';
2525

tests/E2E/Controller/v1/Auth/GetTokenControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Controller\v1\Auth
2323
* @author TLe, Tarmo Leppänen <[email protected]>
2424
*/
25-
class GetTokenControllerTest extends WebTestCase
25+
final class GetTokenControllerTest extends WebTestCase
2626
{
2727
private string $baseUrl = '/v1/auth/get_token';
2828

tests/E2E/Controller/v1/Auth/LoginFailureTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @package App\Tests\E2E\Controller\v1\Auth
2222
* @author TLe, Tarmo Leppänen <[email protected]>
2323
*/
24-
class LoginFailureTest extends WebTestCase
24+
final class LoginFailureTest extends WebTestCase
2525
{
2626
private string $baseUrl = '/v1/auth/get_token';
2727

tests/E2E/Controller/v1/Localization/LanguageControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Localization
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class LanguageControllerTest extends WebTestCase
22+
final class LanguageControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/localization/language';
2525

tests/E2E/Controller/v1/Localization/LocaleControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Localization
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class LocaleControllerTest extends WebTestCase
22+
final class LocaleControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/localization/locale';
2525

tests/E2E/Controller/v1/Localization/TimeZoneControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Localization
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class TimeZoneControllerTest extends WebTestCase
22+
final class TimeZoneControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/localization/timezone';
2525

tests/E2E/Controller/v1/Profile/GroupsControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @package App\Tests\E2E\Controller\v1\Profile
2828
* @author TLe, Tarmo Leppänen <[email protected]>
2929
*/
30-
class GroupsControllerTest extends WebTestCase
30+
final class GroupsControllerTest extends WebTestCase
3131
{
3232
private string $baseUrl = '/v1/profile/groups';
3333

tests/E2E/Controller/v1/Profile/IndexControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @package App\Tests\E2E\Controller\v1\Profile
2626
* @author TLe, Tarmo Leppänen <[email protected]>
2727
*/
28-
class IndexControllerTest extends WebTestCase
28+
final class IndexControllerTest extends WebTestCase
2929
{
3030
private string $baseUrl = '/v1/profile';
3131

tests/E2E/Controller/v1/Profile/RolesControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @package App\Tests\E2E\Controller\v1\Profile
2727
* @author TLe, Tarmo Leppänen <[email protected]>
2828
*/
29-
class RolesControllerTest extends WebTestCase
29+
final class RolesControllerTest extends WebTestCase
3030
{
3131
private string $baseUrl = '/v1/profile/roles';
3232

tests/E2E/Controller/v1/Role/FindOneRoleControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Role
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class FindOneRoleControllerTest extends WebTestCase
22+
final class FindOneRoleControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/role';
2525

tests/E2E/Controller/v1/Role/InheritedRolesControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Controller\v1\Role
2323
* @author TLe, Tarmo Leppänen <[email protected]>
2424
*/
25-
class InheritedRolesControllerTest extends WebTestCase
25+
final class InheritedRolesControllerTest extends WebTestCase
2626
{
2727
private string $baseUrl = '/v1/role';
2828

tests/E2E/Controller/v1/Role/RoleControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\Role
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class RoleControllerTest extends WebTestCase
22+
final class RoleControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/role';
2525

tests/E2E/Controller/v1/User/AttachUserGroupControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @package App\Tests\E2E\Controller\v1\User
2525
* @author TLe, Tarmo Leppänen <[email protected]>
2626
*/
27-
class AttachUserGroupControllerTest extends WebTestCase
27+
final class AttachUserGroupControllerTest extends WebTestCase
2828
{
2929
private string $baseUrl = '/v1/user';
3030

tests/E2E/Controller/v1/User/DeleteUserControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Controller\v1\User
2323
* @author TLe, Tarmo Leppänen <[email protected]>
2424
*/
25-
class DeleteUserControllerTest extends WebTestCase
25+
final class DeleteUserControllerTest extends WebTestCase
2626
{
2727
private string $baseUrl = '/v1/user';
2828

tests/E2E/Controller/v1/User/DetachUserGroupControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @package App\Tests\E2E\Controller\v1\User
2424
* @author TLe, Tarmo Leppänen <[email protected]>
2525
*/
26-
class DetachUserGroupControllerTest extends WebTestCase
26+
final class DetachUserGroupControllerTest extends WebTestCase
2727
{
2828
private string $baseUrl = '/v1/user';
2929

tests/E2E/Controller/v1/User/UserControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @package App\Tests\E2E\Controller\v1\User
2121
* @author TLe, Tarmo Leppänen <[email protected]>
2222
*/
23-
class UserControllerTest extends WebTestCase
23+
final class UserControllerTest extends WebTestCase
2424
{
2525
private string $baseUrl = '/v1/user';
2626

tests/E2E/Controller/v1/User/UserCreateInvalidUserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @package App\Tests\E2E\Controller\v1\User
2121
* @author TLe, Tarmo Leppänen <[email protected]>
2222
*/
23-
class UserCreateInvalidUserTest extends WebTestCase
23+
final class UserCreateInvalidUserTest extends WebTestCase
2424
{
2525
/**
2626
* @throws Throwable

tests/E2E/Controller/v1/User/UserGroupsControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Controller\v1\User
2323
* @author TLe, Tarmo Leppänen <[email protected]>
2424
*/
25-
class UserGroupsControllerTest extends WebTestCase
25+
final class UserGroupsControllerTest extends WebTestCase
2626
{
2727
private string $baseUrl = '/v1/user';
2828

tests/E2E/Controller/v1/User/UserManagementFlowTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @package App\Tests\E2E\Controller\v1\User
1919
* @author TLe, Tarmo Leppänen <[email protected]>
2020
*/
21-
class UserManagementFlowTest extends WebTestCase
21+
final class UserManagementFlowTest extends WebTestCase
2222
{
2323
private string $baseUrl = '/v1/user';
2424

tests/E2E/Controller/v1/User/UserRolesControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @package App\Tests\E2E\Controller\v1\User
2424
* @author TLe, Tarmo Leppänen <[email protected]>
2525
*/
26-
class UserRolesControllerTest extends WebTestCase
26+
final class UserRolesControllerTest extends WebTestCase
2727
{
2828
private string $baseUrl = '/v1/user';
2929

tests/E2E/Controller/v1/User/UserUpdateInvalidUserTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @package App\Tests\E2E\Controller\v1\User
2222
* @author TLe, Tarmo Leppänen <[email protected]>
2323
*/
24-
class UserUpdateInvalidUserTest extends WebTestCase
24+
final class UserUpdateInvalidUserTest extends WebTestCase
2525
{
2626
/**
2727
* @throws Throwable

tests/E2E/Controller/v1/UserGroup/AttachUserControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @package App\Tests\E2E\Controller\v1\UserGroup
2525
* @author TLe, Tarmo Leppänen <[email protected]>
2626
*/
27-
class AttachUserControllerTest extends WebTestCase
27+
final class AttachUserControllerTest extends WebTestCase
2828
{
2929
private string $baseUrl = '/v1/user_group';
3030

tests/E2E/Controller/v1/UserGroup/DetachUserControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @package App\Tests\E2E\Controller\v1\UserGroup
2424
* @author TLe, Tarmo Leppänen <[email protected]>
2525
*/
26-
class DetachUserControllerTest extends WebTestCase
26+
final class DetachUserControllerTest extends WebTestCase
2727
{
2828
private string $baseUrl = '/v1/user_group';
2929

tests/E2E/Controller/v1/UserGroup/UserGroupControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @package App\Tests\E2E\Controller\v1\UserGroup
2020
* @author TLe, Tarmo Leppänen <[email protected]>
2121
*/
22-
class UserGroupControllerTest extends WebTestCase
22+
final class UserGroupControllerTest extends WebTestCase
2323
{
2424
private string $baseUrl = '/v1/user_group';
2525

tests/E2E/Controller/v1/UserGroup/UsersControllerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @package App\Tests\E2E\Controller\v1\UserGroup
2121
* @author TLe, Tarmo Leppänen <[email protected]>
2222
*/
23-
class UsersControllerTest extends WebTestCase
23+
final class UsersControllerTest extends WebTestCase
2424
{
2525
/**
2626
* @throws Throwable

tests/E2E/DocumentationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @package App\Tests\Functional
1717
* @author TLe, Tarmo Leppänen <[email protected]>
1818
*/
19-
class DocumentationTest extends WebTestCase
19+
final class DocumentationTest extends WebTestCase
2020
{
2121
/**
2222
* @throws Throwable

tests/E2E/Rest/ResourceLifeCycleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* @package App\Tests\E2E\Rest
2323
* @author TLe, Tarmo Leppänen <[email protected]>
2424
*/
25-
class ResourceLifeCycleTest extends WebTestCase
25+
final class ResourceLifeCycleTest extends WebTestCase
2626
{
2727
/**
2828
* @throws Throwable

tests/E2E/Rest/Traits/Actions/AdminActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class AdminActionsTest extends RestTraitTestCase
20+
final class AdminActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_admin_actions';
2323

tests/E2E/Rest/Traits/Actions/AnonActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class AnonActionsTest extends RestTraitTestCase
20+
final class AnonActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_anon_actions';
2323

tests/E2E/Rest/Traits/Actions/AuthenticatedActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class AuthenticatedActionsTest extends RestTraitTestCase
20+
final class AuthenticatedActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_authenticated_actions';
2323

tests/E2E/Rest/Traits/Actions/LoggedActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class LoggedActionsTest extends RestTraitTestCase
20+
final class LoggedActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_logged_actions';
2323

tests/E2E/Rest/Traits/Actions/RootActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class RootActionsTest extends RestTraitTestCase
20+
final class RootActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_root_actions';
2323

tests/E2E/Rest/Traits/Actions/UserActionsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package App\Tests\E2E\Rest\Traits\Actions
1818
* @author TLe, Tarmo Leppänen <[email protected]>
1919
*/
20-
class UserActionsTest extends RestTraitTestCase
20+
final class UserActionsTest extends RestTraitTestCase
2121
{
2222
protected static string $route = '/test_user_actions';
2323

tests/E2E/Rest/Traits/Actions/src/AdminActionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
path: '/test_admin_actions',
3131
)]
3232
#[IsGranted(AuthenticatedVoter::IS_AUTHENTICATED_FULLY)]
33-
class AdminActionsController extends Controller
33+
final class AdminActionsController extends Controller
3434
{
3535
use Actions\CountAction;
3636
use Actions\CreateAction;

tests/E2E/Rest/Traits/Actions/src/AnonActionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#[Route(
2828
path: '/test_anon_actions',
2929
)]
30-
class AnonActionsController extends Controller
30+
final class AnonActionsController extends Controller
3131
{
3232
use Actions\CountAction;
3333
use Actions\CreateAction;

tests/E2E/Rest/Traits/Actions/src/AuthenticatedActionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
path: '/test_authenticated_actions',
3131
)]
3232
#[IsGranted(AuthenticatedVoter::IS_AUTHENTICATED_FULLY)]
33-
class AuthenticatedActionsController extends Controller
33+
final class AuthenticatedActionsController extends Controller
3434
{
3535
use Actions\CountAction;
3636
use Actions\CreateAction;

0 commit comments

Comments
 (0)