From 615be5d846c56ee09998eaf7ee893eb928e807a2 Mon Sep 17 00:00:00 2001 From: Syndesi Date: Mon, 18 Dec 2023 12:41:09 +0100 Subject: [PATCH] Constants are changed to contain type declarations, closes #211. --- CHANGELOG.md | 2 + .../src/DependencyInjection/Configuration.php | 8 ++-- .../src/Service/EmberNexusConfiguration.php | 38 +++++++++---------- src/Command/TokenRevokeCommand.php | 22 +++++------ src/Helper/Regex.php | 4 +- src/Helper/ReservedPropertyNameHelper.php | 5 ++- .../Backup/BackupCreateTest.php | 2 +- .../Backup/BackupFetchTest.php | 2 +- .../Backup/BackupListTest.php | 2 +- .../Backup/BackupLoadTest.php | 2 +- .../Database/DatabaseDropTest.php | 2 +- .../System/SystemHealthcheckTest.php | 2 +- .../Token/TokenCreateTest.php | 2 +- .../Token/TokenRevokeTest.php | 4 +- .../User/UserCreateTest.php | 2 +- .../BaseRequestTestCase.php | 12 ++++-- .../Element/DeleteElementTest.php | 8 ++-- .../Element/GetChildrenTest.php | 8 ++-- .../Element/GetElementTest.php | 10 ++--- .../Element/GetIndexTest.php | 4 +- .../Element/GetParentsTest.php | 8 ++-- .../Element/GetRelatedTest.php | 8 ++-- .../Element/PostElementTest.php | 6 +-- .../Element/PostIndexTest.php | 6 +-- .../Element/PutElementTest.php | 6 +-- .../Error/Get400BadContentTest.php | 2 +- .../Error/Get400ForbiddenPropertyTest.php | 2 +- .../Get400IncompleteMutualDependencyTest.php | 2 +- .../Error/Get400MissingPropertyTest.php | 2 +- .../Error/Get400ReservedIdentifierTest.php | 2 +- .../Error/Get401UnauthorizedTest.php | 2 +- .../Error/Get403ForbiddenTest.php | 2 +- .../Error/Get404NotFoundTest.php | 2 +- .../Error/Get501NotImplementedTest.php | 2 +- .../System/GetInstanceConfigurationTest.php | 2 +- ...gurationWithDifferentConfigurationTest.php | 4 +- .../User/DeleteTokenTest.php | 4 +- .../User/GetMeTest.php | 2 +- .../User/GetTokenTest.php | 4 +- .../User/PostChangePasswordTest.php | 2 +- .../User/PostRegisterTest.php | 2 +- ...RegisterWithDifferentConfigurationTest.php | 4 +- .../User/PostTokenTest.php | 6 +-- tests/FeatureTests/BaseRequestTestCase.php | 5 ++- .../Command/RevokeTokenGroupTest.php | 24 ++++++------ .../Command/RevokeTokenIssuedAfterTest.php | 6 +-- .../Command/RevokeTokenIssuedBeforeTest.php | 6 +-- ...evokeTokenIssuedWithExpirationDateTest.php | 6 +-- ...keTokenIssuedWithoutExpirationDateTest.php | 6 +-- .../Command/RevokeTokenUserTest.php | 14 +++---- .../Element/DeleteElementNodeTest.php | 4 +- .../Element/DeleteElementRelationTest.php | 4 +- .../Endpoint/Element/GetChildrenTest.php | 6 +-- .../Endpoint/Element/GetElementNodeTest.php | 4 +- .../Element/GetElementRelationTest.php | 4 +- .../Endpoint/Element/GetIndexTest.php | 2 +- .../Endpoint/Element/GetParentsTest.php | 4 +- .../Endpoint/Element/GetRelatedTest.php | 4 +- .../Endpoint/Element/PatchElementNodeTest.php | 4 +- .../Element/PatchElementRelationTest.php | 4 +- .../Endpoint/Element/PostIndexNodeTest.php | 2 +- .../Element/PostIndexRelationTest.php | 6 +-- .../Endpoint/Element/PutElementNodeTest.php | 4 +- .../Element/PutElementRelationTest.php | 4 +- .../Endpoint/File/DeleteFileTest.php | 2 +- .../Endpoint/File/GetFileTest.php | 2 +- .../Endpoint/File/PatchFileTest.php | 2 +- .../Endpoint/File/PostFileTest.php | 2 +- .../Endpoint/File/PutFileTest.php | 2 +- .../Endpoint/Search/SearchTest.php | 4 +- .../Endpoint/User/DeleteTokenTest.php | 4 +- .../FeatureTests/Endpoint/User/GetMeTest.php | 4 +- .../Endpoint/User/GetTokenTest.php | 2 +- .../Endpoint/User/PostChangePasswordTest.php | 6 +-- .../Endpoint/User/PostTokenTest.php | 6 +-- .../Endpoint/WebDAV/CopyElementTest.php | 2 +- .../Endpoint/WebDAV/LockElementTest.php | 2 +- .../Endpoint/WebDAV/MkcolElementTest.php | 2 +- .../Endpoint/WebDAV/MoveElementTest.php | 2 +- .../Endpoint/WebDAV/PropfindElementTest.php | 2 +- .../Endpoint/WebDAV/ProppatchElementTest.php | 2 +- .../Endpoint/WebDAV/UnlockElementTest.php | 2 +- .../General/Edgecases/NoRouteTest.php | 2 +- .../OwnershipModel/OwnershipModelTest.php | 12 +++--- .../Pagination/ChildrenPaginationTest.php | 6 +-- .../Pagination/ParentsPaginationTest.php | 6 +-- .../Pagination/RelatedPaginationTest.php | 6 +-- .../FeatureTests/Security/DeleteTokenTest.php | 8 ++-- .../_01_01_NoConnectionTest.php | 6 +-- .../_01_02_NoRelevantConnectionTest.php | 8 ++-- ...itherStartOrEndNodeOfRelationshipsTest.php | 16 ++++---- ...04_OwnsRelationshipsAreDirectionalTest.php | 18 ++++----- .../_02_01_ImmediateNodeOwnershipTest.php | 8 ++-- .../_07_01_SearchAccessTest.php | 22 +++++------ .../TokenDoesNotReturnInternalFieldsTest.php | 4 +- .../FeatureTests/Security/TokenStateTest.php | 8 ++-- .../_02_02_ImmediateRelationOwnershipTest.php | 12 +++--- .../Security/_02_03_PathNodeOwnershipTest.php | 8 ++-- .../_02_04_PathRelationOwnershipTest.php | 14 +++---- ..._03_01_GroupImmediateNodeOwnershipTest.php | 12 +++--- ...02_GroupImmediateRelationOwnershipTest.php | 18 ++++----- .../_03_03_GroupPathNodeOwnershipTest.php | 10 ++--- .../_03_04_GroupPathRelationOwnershipTest.php | 16 ++++---- ...04_01_GroupsImmediateNodeOwnershipTest.php | 20 +++++----- ...2_GroupsImmediateRelationOwnershipTest.php | 26 ++++++------- .../_04_03_GroupsPathNodeOwnershipTest.php | 14 +++---- .../_04_04_GroupsPathNodeOwnershipTest.php | 20 +++++----- .../_05_01_MixedNodeOwnershipTest.php | 12 +++--- .../_05_02_MixedRelationOwnershipTest.php | 18 ++++----- .../Security/_06_01_LimitedReadAccessTest.php | 32 ++++++++-------- ..._01_IsInGroupAfterOwnsHaveNoEffectTest.php | 22 +++++------ ...eDirectAccessButNotToRelatedGroupsTest.php | 14 +++---- .../Security/_99_05_TokenHasNoOwnerTest.php | 6 +-- .../Security/_99_06_TokenHasTwoOwnersTest.php | 10 ++--- 114 files changed, 412 insertions(+), 398 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1461ea82..a2725142 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Changed +- Constants are changed to contain type declarations, closes #211. ## 0.1.0 - 2023-12-16 ### Added diff --git a/lib/EmberNexusBundle/src/DependencyInjection/Configuration.php b/lib/EmberNexusBundle/src/DependencyInjection/Configuration.php index 8f6af4f4..871609ae 100644 --- a/lib/EmberNexusBundle/src/DependencyInjection/Configuration.php +++ b/lib/EmberNexusBundle/src/DependencyInjection/Configuration.php @@ -8,10 +8,10 @@ class Configuration implements ConfigurationInterface { - public const HALF_AN_HOUR_IN_SECONDS = 1800; - public const THREE_HOURS_IN_SECONDS = 3600 * 3; - public const THIRTEEN_MONTHS_IN_SECONDS = 3600 * 24 * (365 + 31); - public const TWO_WEEKS_IN_SECONDS = 3600 * 24 * 14; + public const int HALF_AN_HOUR_IN_SECONDS = 1800; + public const int THREE_HOURS_IN_SECONDS = 3600 * 3; + public const int THIRTEEN_MONTHS_IN_SECONDS = 3600 * 24 * (365 + 31); + public const int TWO_WEEKS_IN_SECONDS = 3600 * 24 * 14; public function getConfigTreeBuilder(): TreeBuilder { diff --git a/lib/EmberNexusBundle/src/Service/EmberNexusConfiguration.php b/lib/EmberNexusBundle/src/Service/EmberNexusConfiguration.php index 98bc4638..dc784c0b 100644 --- a/lib/EmberNexusBundle/src/Service/EmberNexusConfiguration.php +++ b/lib/EmberNexusBundle/src/Service/EmberNexusConfiguration.php @@ -10,25 +10,25 @@ */ class EmberNexusConfiguration { - public const PAGE_SIZE = 'pageSize'; - public const PAGE_SIZE_MIN = 'min'; - public const PAGE_SIZE_DEFAULT = 'default'; - public const PAGE_SIZE_MAX = 'max'; - - public const REGISTER = 'register'; - public const REGISTER_ENABLED = 'enabled'; - public const REGISTER_UNIQUE_IDENTIFIER = 'uniqueIdentifier'; - public const REGISTER_UNIQUE_IDENTIFIER_REGEX = 'uniqueIdentifierRegex'; - - public const INSTANCE_CONFIGURATION = 'instanceConfiguration'; - public const INSTANCE_CONFIGURATION_ENABLED = 'enabled'; - public const INSTANCE_CONFIGURATION_SHOW_VERSION = 'showVersion'; - - public const TOKEN = 'token'; - public const TOKEN_MIN_LIFETIME_IN_SECONDS = 'minLifetimeInSeconds'; - public const TOKEN_DEFAULT_LIFETIME_IN_SECONDS = 'defaultLifetimeInSeconds'; - public const TOKEN_MAX_LIFETIME_IN_SECONDS = 'maxLifetimeInSeconds'; - public const TOKEN_DELETE_EXPIRED_TOKENS_AUTOMATICALLY_IN_SECONDS = 'tokenDeleteExpiredTokensAutomaticallyInSeconds'; + public const string PAGE_SIZE = 'pageSize'; + public const string PAGE_SIZE_MIN = 'min'; + public const string PAGE_SIZE_DEFAULT = 'default'; + public const string PAGE_SIZE_MAX = 'max'; + + public const string REGISTER = 'register'; + public const string REGISTER_ENABLED = 'enabled'; + public const string REGISTER_UNIQUE_IDENTIFIER = 'uniqueIdentifier'; + public const string REGISTER_UNIQUE_IDENTIFIER_REGEX = 'uniqueIdentifierRegex'; + + public const string INSTANCE_CONFIGURATION = 'instanceConfiguration'; + public const string INSTANCE_CONFIGURATION_ENABLED = 'enabled'; + public const string INSTANCE_CONFIGURATION_SHOW_VERSION = 'showVersion'; + + public const string TOKEN = 'token'; + public const string TOKEN_MIN_LIFETIME_IN_SECONDS = 'minLifetimeInSeconds'; + public const string TOKEN_DEFAULT_LIFETIME_IN_SECONDS = 'defaultLifetimeInSeconds'; + public const string TOKEN_MAX_LIFETIME_IN_SECONDS = 'maxLifetimeInSeconds'; + public const string TOKEN_DELETE_EXPIRED_TOKENS_AUTOMATICALLY_IN_SECONDS = 'tokenDeleteExpiredTokensAutomaticallyInSeconds'; private int $pageSizeMin; private int $pageSizeDefault; diff --git a/src/Command/TokenRevokeCommand.php b/src/Command/TokenRevokeCommand.php index 95b8e025..6ec0ed4e 100644 --- a/src/Command/TokenRevokeCommand.php +++ b/src/Command/TokenRevokeCommand.php @@ -36,17 +36,17 @@ class TokenRevokeCommand extends Command { private EmberNexusStyle $io; - public const OPTION_FORCE = 'force'; - public const OPTION_DRY_RUN = 'dry-run'; - public const OPTION_LIST_ALL_AFFECTED_TOKENS = 'list-all-affected-tokens'; - public const OPTION_USER = 'user'; - public const OPTION_GROUP = 'group'; - public const OPTION_ISSUED_BEFORE = 'issued-before'; - public const OPTION_ISSUED_AFTER = 'issued-after'; - public const OPTION_ISSUED_WITHOUT_EXPIRATION_DATE = 'issued-without-expiration-date'; - public const OPTION_ISSUED_WITH_EXPIRATION_DATE = 'issued-with-expiration-date'; - public const NUMBER_OF_TOKENS_TO_DISPLAY = 10; - public const TOKEN_REVOKE_BATCH_SIZE = 10; + public const string OPTION_FORCE = 'force'; + public const string OPTION_DRY_RUN = 'dry-run'; + public const string OPTION_LIST_ALL_AFFECTED_TOKENS = 'list-all-affected-tokens'; + public const string OPTION_USER = 'user'; + public const string OPTION_GROUP = 'group'; + public const string OPTION_ISSUED_BEFORE = 'issued-before'; + public const string OPTION_ISSUED_AFTER = 'issued-after'; + public const string OPTION_ISSUED_WITHOUT_EXPIRATION_DATE = 'issued-without-expiration-date'; + public const string OPTION_ISSUED_WITH_EXPIRATION_DATE = 'issued-with-expiration-date'; + public const int NUMBER_OF_TOKENS_TO_DISPLAY = 10; + public const int TOKEN_REVOKE_BATCH_SIZE = 10; private bool $isForceActive = false; private bool $isDryRunActive = false; diff --git a/src/Helper/Regex.php b/src/Helper/Regex.php index cb7b51bf..747c91e8 100755 --- a/src/Helper/Regex.php +++ b/src/Helper/Regex.php @@ -4,6 +4,6 @@ class Regex { - public const UUID_V4_CONTROLLER = '[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}'; - public const UUID_V4 = '/^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$/'; + public const string UUID_V4_CONTROLLER = '[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}'; + public const string UUID_V4 = '/^[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$/'; } diff --git a/src/Helper/ReservedPropertyNameHelper.php b/src/Helper/ReservedPropertyNameHelper.php index c921bc3f..4f949a3e 100755 --- a/src/Helper/ReservedPropertyNameHelper.php +++ b/src/Helper/ReservedPropertyNameHelper.php @@ -4,7 +4,10 @@ class ReservedPropertyNameHelper { - public const RESERVED_PROPERTY_NAMES = [ + /** + * @var string[] RESERVED_PROPERTY_NAMES + */ + public const array RESERVED_PROPERTY_NAMES = [ 'id', '_id', 'type', diff --git a/tests/ExampleGenerationCommand/Backup/BackupCreateTest.php b/tests/ExampleGenerationCommand/Backup/BackupCreateTest.php index 3cc3fffd..9042a6d7 100644 --- a/tests/ExampleGenerationCommand/Backup/BackupCreateTest.php +++ b/tests/ExampleGenerationCommand/Backup/BackupCreateTest.php @@ -6,7 +6,7 @@ class BackupCreateTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testBackupCreateHelp(): void { diff --git a/tests/ExampleGenerationCommand/Backup/BackupFetchTest.php b/tests/ExampleGenerationCommand/Backup/BackupFetchTest.php index 20a75d9e..4b62bba7 100644 --- a/tests/ExampleGenerationCommand/Backup/BackupFetchTest.php +++ b/tests/ExampleGenerationCommand/Backup/BackupFetchTest.php @@ -6,7 +6,7 @@ class BackupFetchTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testBackupFetchHelp(): void { diff --git a/tests/ExampleGenerationCommand/Backup/BackupListTest.php b/tests/ExampleGenerationCommand/Backup/BackupListTest.php index 0e5ef77e..cf79b00a 100644 --- a/tests/ExampleGenerationCommand/Backup/BackupListTest.php +++ b/tests/ExampleGenerationCommand/Backup/BackupListTest.php @@ -6,7 +6,7 @@ class BackupListTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testBackupListHelp(): void { diff --git a/tests/ExampleGenerationCommand/Backup/BackupLoadTest.php b/tests/ExampleGenerationCommand/Backup/BackupLoadTest.php index a5b216fa..a7451b7e 100644 --- a/tests/ExampleGenerationCommand/Backup/BackupLoadTest.php +++ b/tests/ExampleGenerationCommand/Backup/BackupLoadTest.php @@ -6,7 +6,7 @@ class BackupLoadTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testBackupListHelp(): void { diff --git a/tests/ExampleGenerationCommand/Database/DatabaseDropTest.php b/tests/ExampleGenerationCommand/Database/DatabaseDropTest.php index 7090a89e..8265779a 100644 --- a/tests/ExampleGenerationCommand/Database/DatabaseDropTest.php +++ b/tests/ExampleGenerationCommand/Database/DatabaseDropTest.php @@ -6,7 +6,7 @@ class DatabaseDropTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testUserCreateHelp(): void { diff --git a/tests/ExampleGenerationCommand/System/SystemHealthcheckTest.php b/tests/ExampleGenerationCommand/System/SystemHealthcheckTest.php index 47d14291..705bb497 100644 --- a/tests/ExampleGenerationCommand/System/SystemHealthcheckTest.php +++ b/tests/ExampleGenerationCommand/System/SystemHealthcheckTest.php @@ -6,7 +6,7 @@ class SystemHealthcheckTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testSystemHealthcheckHelp(): void { diff --git a/tests/ExampleGenerationCommand/Token/TokenCreateTest.php b/tests/ExampleGenerationCommand/Token/TokenCreateTest.php index 65a5a6a7..70a8cd8a 100644 --- a/tests/ExampleGenerationCommand/Token/TokenCreateTest.php +++ b/tests/ExampleGenerationCommand/Token/TokenCreateTest.php @@ -6,7 +6,7 @@ class TokenCreateTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testTokenCreateHelp(): void { diff --git a/tests/ExampleGenerationCommand/Token/TokenRevokeTest.php b/tests/ExampleGenerationCommand/Token/TokenRevokeTest.php index 96f29c2e..1ea48c64 100644 --- a/tests/ExampleGenerationCommand/Token/TokenRevokeTest.php +++ b/tests/ExampleGenerationCommand/Token/TokenRevokeTest.php @@ -6,7 +6,7 @@ class TokenRevokeTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testTokenRevokeHelp(): void { @@ -33,7 +33,7 @@ public function testTokenRevoke(): void 'Found user with identifier', 'Successfully revoked new token:', 'localhost.dev', - 'User identifier' + 'User identifier', ] ); } diff --git a/tests/ExampleGenerationCommand/User/UserCreateTest.php b/tests/ExampleGenerationCommand/User/UserCreateTest.php index 73884cfb..67e0a565 100644 --- a/tests/ExampleGenerationCommand/User/UserCreateTest.php +++ b/tests/ExampleGenerationCommand/User/UserCreateTest.php @@ -6,7 +6,7 @@ class UserCreateTest extends BaseCommandTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testUserCreateHelp(): void { diff --git a/tests/ExampleGenerationController/BaseRequestTestCase.php b/tests/ExampleGenerationController/BaseRequestTestCase.php index c8bba199..3e4b2c3e 100644 --- a/tests/ExampleGenerationController/BaseRequestTestCase.php +++ b/tests/ExampleGenerationController/BaseRequestTestCase.php @@ -6,9 +6,15 @@ abstract class BaseRequestTestCase extends \App\Tests\FeatureTests\BaseRequestTestCase { - private const IGNORED_HEADERS = ['Date', 'Location']; - - private const REMOVED_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link']; + /** + * @var string[] IGNORED_HEADERS + */ + private const array IGNORED_HEADERS = ['Date', 'Location']; + + /** + * @var string[] REMOVED_HEADERS + */ + private const array REMOVED_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link']; public function getHeadersFromRequest(ResponseInterface $response): string { diff --git a/tests/ExampleGenerationController/Element/DeleteElementTest.php b/tests/ExampleGenerationController/Element/DeleteElementTest.php index f7608881..cb80add1 100644 --- a/tests/ExampleGenerationController/Element/DeleteElementTest.php +++ b/tests/ExampleGenerationController/Element/DeleteElementTest.php @@ -6,11 +6,11 @@ class DeleteElementTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:CevJS3ZkDtJcCdqEhFKqWF'; - private const ELEMENT = '55cce573-1377-4781-be16-8b81587aca10'; - private const NON_EXISTENT_ELEMENT = '00000000-0000-4000-8000-000000000000'; + private const string TOKEN = 'secret-token:CevJS3ZkDtJcCdqEhFKqWF'; + private const string ELEMENT = '55cce573-1377-4781-be16-8b81587aca10'; + private const string NON_EXISTENT_ELEMENT = '00000000-0000-4000-8000-000000000000'; public function testDeleteElementSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/GetChildrenTest.php b/tests/ExampleGenerationController/Element/GetChildrenTest.php index 61823d20..32149452 100644 --- a/tests/ExampleGenerationController/Element/GetChildrenTest.php +++ b/tests/ExampleGenerationController/Element/GetChildrenTest.php @@ -6,10 +6,10 @@ class GetChildrenTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const PARENT_UUID = '56fda20c-b238-4034-b555-1df47c47e17a'; - private const ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string PARENT_UUID = '56fda20c-b238-4034-b555-1df47c47e17a'; + private const string ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; public function testGetChildrenSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/GetElementTest.php b/tests/ExampleGenerationController/Element/GetElementTest.php index d0190a18..4aeb4d2f 100644 --- a/tests/ExampleGenerationController/Element/GetElementTest.php +++ b/tests/ExampleGenerationController/Element/GetElementTest.php @@ -6,11 +6,11 @@ class GetElementTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const NODE_UUID = '74a8fcd9-6cb0-4b0d-8d42-0b6c3c54d1ac'; - private const RELATION_UUID = 'eb5d2879-c5e6-43a6-b8ce-2a1188ca7073'; - private const ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string NODE_UUID = '74a8fcd9-6cb0-4b0d-8d42-0b6c3c54d1ac'; + private const string RELATION_UUID = 'eb5d2879-c5e6-43a6-b8ce-2a1188ca7073'; + private const string ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; public function testGetNodeSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/GetIndexTest.php b/tests/ExampleGenerationController/Element/GetIndexTest.php index 229ad248..dea26cdf 100644 --- a/tests/ExampleGenerationController/Element/GetIndexTest.php +++ b/tests/ExampleGenerationController/Element/GetIndexTest.php @@ -6,8 +6,8 @@ class GetIndexTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; public function testGetIndexSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/GetParentsTest.php b/tests/ExampleGenerationController/Element/GetParentsTest.php index 323d2f17..92169bdf 100644 --- a/tests/ExampleGenerationController/Element/GetParentsTest.php +++ b/tests/ExampleGenerationController/Element/GetParentsTest.php @@ -6,10 +6,10 @@ class GetParentsTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const CHILD_UUID = '45482998-274a-43d0-a466-f31d0b24cc0a'; - private const ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string CHILD_UUID = '45482998-274a-43d0-a466-f31d0b24cc0a'; + private const string ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; public function testGetParentsSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/GetRelatedTest.php b/tests/ExampleGenerationController/Element/GetRelatedTest.php index c6e38a9f..544c919f 100644 --- a/tests/ExampleGenerationController/Element/GetRelatedTest.php +++ b/tests/ExampleGenerationController/Element/GetRelatedTest.php @@ -6,10 +6,10 @@ class GetRelatedTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const ELEMENT_UUID = '45482998-274a-43d0-a466-f31d0b24cc0a'; - private const ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string ELEMENT_UUID = '45482998-274a-43d0-a466-f31d0b24cc0a'; + private const string ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; public function testGetRelatedSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/PostElementTest.php b/tests/ExampleGenerationController/Element/PostElementTest.php index 6d912c6c..9ed7cf4a 100644 --- a/tests/ExampleGenerationController/Element/PostElementTest.php +++ b/tests/ExampleGenerationController/Element/PostElementTest.php @@ -6,9 +6,9 @@ class PostElementTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const PARENT_ELEMENT = '7b80b203-2b82-40f5-accd-c7089fe6114e'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string PARENT_ELEMENT = '7b80b203-2b82-40f5-accd-c7089fe6114e'; public function testPostElementSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/PostIndexTest.php b/tests/ExampleGenerationController/Element/PostIndexTest.php index 2d870057..fe992841 100644 --- a/tests/ExampleGenerationController/Element/PostIndexTest.php +++ b/tests/ExampleGenerationController/Element/PostIndexTest.php @@ -6,9 +6,9 @@ class PostIndexTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string ELEMENT_WHICH_DOES_NOT_EXIST = 'b4117ae0-1241-479f-b363-45f290ec7fc7'; public function testPostIndexSuccess(): void { diff --git a/tests/ExampleGenerationController/Element/PutElementTest.php b/tests/ExampleGenerationController/Element/PutElementTest.php index 3dba1fd7..d3fc7db1 100644 --- a/tests/ExampleGenerationController/Element/PutElementTest.php +++ b/tests/ExampleGenerationController/Element/PutElementTest.php @@ -6,9 +6,9 @@ class PutElementTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; - private const PARENT_ELEMENT = '7b80b203-2b82-40f5-accd-c7089fe6114e'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string TOKEN = 'secret-token:PIPeJGUt7c00ENn8a5uDlc'; + private const string PARENT_ELEMENT = '7b80b203-2b82-40f5-accd-c7089fe6114e'; public function testPostElementSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get400BadContentTest.php b/tests/ExampleGenerationController/Error/Get400BadContentTest.php index 4b274495..79a1420b 100644 --- a/tests/ExampleGenerationController/Error/Get400BadContentTest.php +++ b/tests/ExampleGenerationController/Error/Get400BadContentTest.php @@ -6,7 +6,7 @@ class Get400BadContentTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get400ForbiddenPropertyTest.php b/tests/ExampleGenerationController/Error/Get400ForbiddenPropertyTest.php index 48cd080d..23589dbe 100644 --- a/tests/ExampleGenerationController/Error/Get400ForbiddenPropertyTest.php +++ b/tests/ExampleGenerationController/Error/Get400ForbiddenPropertyTest.php @@ -6,7 +6,7 @@ class Get400ForbiddenPropertyTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get400IncompleteMutualDependencyTest.php b/tests/ExampleGenerationController/Error/Get400IncompleteMutualDependencyTest.php index 78fb37ec..a87932d8 100644 --- a/tests/ExampleGenerationController/Error/Get400IncompleteMutualDependencyTest.php +++ b/tests/ExampleGenerationController/Error/Get400IncompleteMutualDependencyTest.php @@ -6,7 +6,7 @@ class Get400IncompleteMutualDependencyTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get400MissingPropertyTest.php b/tests/ExampleGenerationController/Error/Get400MissingPropertyTest.php index bb31b46f..146a50d9 100644 --- a/tests/ExampleGenerationController/Error/Get400MissingPropertyTest.php +++ b/tests/ExampleGenerationController/Error/Get400MissingPropertyTest.php @@ -6,7 +6,7 @@ class Get400MissingPropertyTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get400ReservedIdentifierTest.php b/tests/ExampleGenerationController/Error/Get400ReservedIdentifierTest.php index aea9d71e..161cbe80 100644 --- a/tests/ExampleGenerationController/Error/Get400ReservedIdentifierTest.php +++ b/tests/ExampleGenerationController/Error/Get400ReservedIdentifierTest.php @@ -6,7 +6,7 @@ class Get400ReservedIdentifierTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get401UnauthorizedTest.php b/tests/ExampleGenerationController/Error/Get401UnauthorizedTest.php index 2d153ac0..95b9ddf8 100644 --- a/tests/ExampleGenerationController/Error/Get401UnauthorizedTest.php +++ b/tests/ExampleGenerationController/Error/Get401UnauthorizedTest.php @@ -6,7 +6,7 @@ class Get401UnauthorizedTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get403ForbiddenTest.php b/tests/ExampleGenerationController/Error/Get403ForbiddenTest.php index fbe5f2fa..5c8eb4f9 100644 --- a/tests/ExampleGenerationController/Error/Get403ForbiddenTest.php +++ b/tests/ExampleGenerationController/Error/Get403ForbiddenTest.php @@ -6,7 +6,7 @@ class Get403ForbiddenTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get404NotFoundTest.php b/tests/ExampleGenerationController/Error/Get404NotFoundTest.php index cca13868..d89eaca6 100644 --- a/tests/ExampleGenerationController/Error/Get404NotFoundTest.php +++ b/tests/ExampleGenerationController/Error/Get404NotFoundTest.php @@ -6,7 +6,7 @@ class Get404NotFoundTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/Error/Get501NotImplementedTest.php b/tests/ExampleGenerationController/Error/Get501NotImplementedTest.php index a8a3d3be..f7678580 100644 --- a/tests/ExampleGenerationController/Error/Get501NotImplementedTest.php +++ b/tests/ExampleGenerationController/Error/Get501NotImplementedTest.php @@ -6,7 +6,7 @@ class Get501NotImplementedTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/System/GetInstanceConfigurationTest.php b/tests/ExampleGenerationController/System/GetInstanceConfigurationTest.php index 7474efb1..fdbe673b 100644 --- a/tests/ExampleGenerationController/System/GetInstanceConfigurationTest.php +++ b/tests/ExampleGenerationController/System/GetInstanceConfigurationTest.php @@ -6,7 +6,7 @@ class GetInstanceConfigurationTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testGetInstanceConfigurationSuccess(): void { diff --git a/tests/ExampleGenerationController/System/GetInstanceConfigurationWithDifferentConfigurationTest.php b/tests/ExampleGenerationController/System/GetInstanceConfigurationWithDifferentConfigurationTest.php index 79c65f77..8cd62847 100644 --- a/tests/ExampleGenerationController/System/GetInstanceConfigurationWithDifferentConfigurationTest.php +++ b/tests/ExampleGenerationController/System/GetInstanceConfigurationWithDifferentConfigurationTest.php @@ -6,8 +6,8 @@ class GetInstanceConfigurationWithDifferentConfigurationTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const PATH_TO_CONFIGURATION = __DIR__.'/../../../config/packages/ember_nexus.yaml'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_CONFIGURATION = __DIR__.'/../../../config/packages/ember_nexus.yaml'; private string $originalConfiguration = ''; diff --git a/tests/ExampleGenerationController/User/DeleteTokenTest.php b/tests/ExampleGenerationController/User/DeleteTokenTest.php index 0dde8858..442a7b42 100644 --- a/tests/ExampleGenerationController/User/DeleteTokenTest.php +++ b/tests/ExampleGenerationController/User/DeleteTokenTest.php @@ -6,9 +6,9 @@ class DeleteTokenTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:RIaBS3MoIoQRbu45ES4ZTP'; + private const string TOKEN = 'secret-token:RIaBS3MoIoQRbu45ES4ZTP'; public function testDeleteTokenSuccess(): void { diff --git a/tests/ExampleGenerationController/User/GetMeTest.php b/tests/ExampleGenerationController/User/GetMeTest.php index ad01c923..8ca2481f 100644 --- a/tests/ExampleGenerationController/User/GetMeTest.php +++ b/tests/ExampleGenerationController/User/GetMeTest.php @@ -6,7 +6,7 @@ class GetMeTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testGetMeSuccess(): void { diff --git a/tests/ExampleGenerationController/User/GetTokenTest.php b/tests/ExampleGenerationController/User/GetTokenTest.php index 8fffe21a..26b46b88 100644 --- a/tests/ExampleGenerationController/User/GetTokenTest.php +++ b/tests/ExampleGenerationController/User/GetTokenTest.php @@ -6,9 +6,9 @@ class GetTokenTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; - private const TOKEN = 'secret-token:7s0vuDVJ1UDH0SErDeaLNe'; + private const string TOKEN = 'secret-token:7s0vuDVJ1UDH0SErDeaLNe'; public function testGetTokenSuccess(): void { diff --git a/tests/ExampleGenerationController/User/PostChangePasswordTest.php b/tests/ExampleGenerationController/User/PostChangePasswordTest.php index 00a0967d..0886e6d4 100644 --- a/tests/ExampleGenerationController/User/PostChangePasswordTest.php +++ b/tests/ExampleGenerationController/User/PostChangePasswordTest.php @@ -6,7 +6,7 @@ class PostChangePasswordTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testChangePasswordSuccess(): void { diff --git a/tests/ExampleGenerationController/User/PostRegisterTest.php b/tests/ExampleGenerationController/User/PostRegisterTest.php index 6d18322f..8a9f084c 100644 --- a/tests/ExampleGenerationController/User/PostRegisterTest.php +++ b/tests/ExampleGenerationController/User/PostRegisterTest.php @@ -6,7 +6,7 @@ class PostRegisterTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testRegisterSuccess(): void { diff --git a/tests/ExampleGenerationController/User/PostRegisterWithDifferentConfigurationTest.php b/tests/ExampleGenerationController/User/PostRegisterWithDifferentConfigurationTest.php index c277f86b..2f40224f 100644 --- a/tests/ExampleGenerationController/User/PostRegisterWithDifferentConfigurationTest.php +++ b/tests/ExampleGenerationController/User/PostRegisterWithDifferentConfigurationTest.php @@ -6,8 +6,8 @@ class PostRegisterWithDifferentConfigurationTest extends BaseRequestTestCase { - private const PATH_TO_ROOT = __DIR__.'/../../../'; - private const PATH_TO_CONFIGURATION = __DIR__.'/../../../config/packages/ember_nexus.yaml'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; + private const string PATH_TO_CONFIGURATION = __DIR__.'/../../../config/packages/ember_nexus.yaml'; private string $originalConfiguration = ''; diff --git a/tests/ExampleGenerationController/User/PostTokenTest.php b/tests/ExampleGenerationController/User/PostTokenTest.php index a911931d..ab16d535 100644 --- a/tests/ExampleGenerationController/User/PostTokenTest.php +++ b/tests/ExampleGenerationController/User/PostTokenTest.php @@ -6,9 +6,9 @@ class PostTokenTest extends BaseRequestTestCase { - public const EMAIL = 'user@postToken.user.endpoint.localhost.dev'; - public const PASSWORD = '1234'; - private const PATH_TO_ROOT = __DIR__.'/../../../'; + private const string EMAIL = 'user@postToken.user.endpoint.localhost.dev'; + private const string PASSWORD = '1234'; + private const string PATH_TO_ROOT = __DIR__.'/../../../'; public function testTokenSuccess(): void { diff --git a/tests/FeatureTests/BaseRequestTestCase.php b/tests/FeatureTests/BaseRequestTestCase.php index 5c0b1ccf..ab28ce9d 100644 --- a/tests/FeatureTests/BaseRequestTestCase.php +++ b/tests/FeatureTests/BaseRequestTestCase.php @@ -8,7 +8,10 @@ abstract class BaseRequestTestCase extends TestCase { - private const IGNORED_HEAD_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link', 'Date']; + /** + * @var string[] IGNORED_HEAD_HEADERS + */ + private const array IGNORED_HEAD_HEADERS = ['X-Debug-Token', 'X-Debug-Token-Link', 'Date']; public function runGetRequest(string $uri, ?string $token): ResponseInterface { diff --git a/tests/FeatureTests/Command/RevokeTokenGroupTest.php b/tests/FeatureTests/Command/RevokeTokenGroupTest.php index 7c3bfe1d..3d7bbd27 100644 --- a/tests/FeatureTests/Command/RevokeTokenGroupTest.php +++ b/tests/FeatureTests/Command/RevokeTokenGroupTest.php @@ -6,18 +6,18 @@ class RevokeTokenGroupTest extends BaseRequestTestCase { - public const GROUP_2_UUID = '6a8d7c70-59f4-4033-98ba-e9386cbda95f'; - - public const TOKEN_USER_1 = 'secret-token:LbN3tQcJK2p9Dj5uo8rNuW'; - public const TOKEN_USER_2 = 'secret-token:2rjH18DE23Ak2cga8SAFu7'; - public const TOKEN_USER_3 = 'secret-token:BmauTsaEvNrKt4pW2dSuDZ'; - public const TOKEN_USER_4 = 'secret-token:8b6Pb2BmipspUNBgV9clfJ'; - public const TOKEN_USER_5 = 'secret-token:GSJ2uHvVLhDq0XbjrfY1F4'; - public const TOKEN_USER_1_UUID = '7aa23ea5-cc1e-4ac4-9397-08543e760bc2'; - public const TOKEN_USER_2_UUID = 'c20ea18e-6988-4184-9414-a0f2457b8cc2'; - public const TOKEN_USER_3_UUID = '598c7cbb-fdcc-4d1b-bb88-4d2032cc32a1'; - public const TOKEN_USER_4_UUID = 'ef27b3bf-4f42-4838-911b-5de2f2dc545e'; - public const TOKEN_USER_5_UUID = 'da78ce72-abf2-4ce9-ac4f-cfb555beb2f5'; + private const string GROUP_2_UUID = '6a8d7c70-59f4-4033-98ba-e9386cbda95f'; + + private const string TOKEN_USER_1 = 'secret-token:LbN3tQcJK2p9Dj5uo8rNuW'; + private const string TOKEN_USER_2 = 'secret-token:2rjH18DE23Ak2cga8SAFu7'; + private const string TOKEN_USER_3 = 'secret-token:BmauTsaEvNrKt4pW2dSuDZ'; + private const string TOKEN_USER_4 = 'secret-token:8b6Pb2BmipspUNBgV9clfJ'; + private const string TOKEN_USER_5 = 'secret-token:GSJ2uHvVLhDq0XbjrfY1F4'; + private const string TOKEN_USER_1_UUID = '7aa23ea5-cc1e-4ac4-9397-08543e760bc2'; + private const string TOKEN_USER_2_UUID = 'c20ea18e-6988-4184-9414-a0f2457b8cc2'; + private const string TOKEN_USER_3_UUID = '598c7cbb-fdcc-4d1b-bb88-4d2032cc32a1'; + private const string TOKEN_USER_4_UUID = 'ef27b3bf-4f42-4838-911b-5de2f2dc545e'; + private const string TOKEN_USER_5_UUID = 'da78ce72-abf2-4ce9-ac4f-cfb555beb2f5'; public function testRevokeTokenGroup(): void { diff --git a/tests/FeatureTests/Command/RevokeTokenIssuedAfterTest.php b/tests/FeatureTests/Command/RevokeTokenIssuedAfterTest.php index a31932ff..b39e9977 100644 --- a/tests/FeatureTests/Command/RevokeTokenIssuedAfterTest.php +++ b/tests/FeatureTests/Command/RevokeTokenIssuedAfterTest.php @@ -6,9 +6,9 @@ class RevokeTokenIssuedAfterTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:IJA6RN4dKZENVerSXGp4H'; - public const TOKEN_ISSUED_AFTER_UUID = 'fbb02626-c3e8-46de-93d4-ee33607dbc69'; - public const USER_UUID = 'e1284efb-d66e-47fd-83b9-4c375ae1c9a2'; + private const string TOKEN = 'secret-token:IJA6RN4dKZENVerSXGp4H'; + private const string TOKEN_ISSUED_AFTER_UUID = 'fbb02626-c3e8-46de-93d4-ee33607dbc69'; + private const string USER_UUID = 'e1284efb-d66e-47fd-83b9-4c375ae1c9a2'; public function testRevokeTokenIssuedAfter(): void { diff --git a/tests/FeatureTests/Command/RevokeTokenIssuedBeforeTest.php b/tests/FeatureTests/Command/RevokeTokenIssuedBeforeTest.php index a1156a30..42c9e02b 100644 --- a/tests/FeatureTests/Command/RevokeTokenIssuedBeforeTest.php +++ b/tests/FeatureTests/Command/RevokeTokenIssuedBeforeTest.php @@ -6,9 +6,9 @@ class RevokeTokenIssuedBeforeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:A919tLukSQ5pGTdA5M30b5'; - public const TOKEN_ISSUED_BEFORE_UUID = '409eacbc-0f5e-43ff-9604-cafed272b63f'; - public const USER_UUID = '42c7c48b-8d0b-4b1f-aabf-8d12ec12851f'; + private const string TOKEN = 'secret-token:A919tLukSQ5pGTdA5M30b5'; + private const string TOKEN_ISSUED_BEFORE_UUID = '409eacbc-0f5e-43ff-9604-cafed272b63f'; + private const string USER_UUID = '42c7c48b-8d0b-4b1f-aabf-8d12ec12851f'; public function testRevokeTokenIssuedBefore(): void { diff --git a/tests/FeatureTests/Command/RevokeTokenIssuedWithExpirationDateTest.php b/tests/FeatureTests/Command/RevokeTokenIssuedWithExpirationDateTest.php index 11827f10..03441c2a 100644 --- a/tests/FeatureTests/Command/RevokeTokenIssuedWithExpirationDateTest.php +++ b/tests/FeatureTests/Command/RevokeTokenIssuedWithExpirationDateTest.php @@ -6,9 +6,9 @@ class RevokeTokenIssuedWithExpirationDateTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:S1aCcsPd5nPfI16SGcoTY0'; - public const TOKEN_WITH_EXPIRATION_DATE_UUID = '0b72c3eb-fea1-4436-a4d7-d1601da9b4ac'; - public const USER_UUID = 'dcad1936-b490-45ba-b9cb-348b75b5f9f6'; + private const string TOKEN = 'secret-token:S1aCcsPd5nPfI16SGcoTY0'; + private const string TOKEN_WITH_EXPIRATION_DATE_UUID = '0b72c3eb-fea1-4436-a4d7-d1601da9b4ac'; + private const string USER_UUID = 'dcad1936-b490-45ba-b9cb-348b75b5f9f6'; public function testRevokeTokenIssuedWithExpirationDate(): void { diff --git a/tests/FeatureTests/Command/RevokeTokenIssuedWithoutExpirationDateTest.php b/tests/FeatureTests/Command/RevokeTokenIssuedWithoutExpirationDateTest.php index 9c6cee37..f20722dc 100644 --- a/tests/FeatureTests/Command/RevokeTokenIssuedWithoutExpirationDateTest.php +++ b/tests/FeatureTests/Command/RevokeTokenIssuedWithoutExpirationDateTest.php @@ -6,9 +6,9 @@ class RevokeTokenIssuedWithoutExpirationDateTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:LsNu0vvb6iA69OAjAEH15a'; - public const TOKEN_WITHOUT_EXPIRATION_DATE_UUID = 'ba4f017b-b1eb-453c-b79a-eafff2cefc69'; - public const USER_UUID = '16eb1b2e-cf4b-4fc5-b595-c8dd64d3da75'; + private const string TOKEN = 'secret-token:LsNu0vvb6iA69OAjAEH15a'; + private const string TOKEN_WITHOUT_EXPIRATION_DATE_UUID = 'ba4f017b-b1eb-453c-b79a-eafff2cefc69'; + private const string USER_UUID = '16eb1b2e-cf4b-4fc5-b595-c8dd64d3da75'; public function testRevokeTokenIssuedWithoutExpirationDate(): void { diff --git a/tests/FeatureTests/Command/RevokeTokenUserTest.php b/tests/FeatureTests/Command/RevokeTokenUserTest.php index d31ad0b9..f4019f44 100644 --- a/tests/FeatureTests/Command/RevokeTokenUserTest.php +++ b/tests/FeatureTests/Command/RevokeTokenUserTest.php @@ -6,13 +6,13 @@ class RevokeTokenUserTest extends BaseRequestTestCase { - public const TOKEN_1_USER_1 = 'secret-token:BPZQtpPeHOpUZ8JPEZK8s8'; - public const TOKEN_2_USER_1 = 'secret-token:MEPKIWtNvAQpcLuUuGQeuC'; - public const TOKEN_1_USER_2 = 'secret-token:PjrG1LJdmkHedddDoDHXgT'; - public const TOKEN_1_USER_1_UUID = '47efaba8-5f2c-474c-a52c-b9e1973d5baf'; - public const TOKEN_2_USER_1_UUID = '51e33dee-46b9-4b28-a20f-23a6d88955c9'; - public const TOKEN_1_USER_2_UUID = '9a9c44c6-1af7-4320-89eb-7e83825ca39a'; - public const USER_1_UUID = '15572057-0605-482a-9903-115ea8243474'; + private const string TOKEN_1_USER_1 = 'secret-token:BPZQtpPeHOpUZ8JPEZK8s8'; + private const string TOKEN_2_USER_1 = 'secret-token:MEPKIWtNvAQpcLuUuGQeuC'; + private const string TOKEN_1_USER_2 = 'secret-token:PjrG1LJdmkHedddDoDHXgT'; + private const string TOKEN_1_USER_1_UUID = '47efaba8-5f2c-474c-a52c-b9e1973d5baf'; + private const string TOKEN_2_USER_1_UUID = '51e33dee-46b9-4b28-a20f-23a6d88955c9'; + private const string TOKEN_1_USER_2_UUID = '9a9c44c6-1af7-4320-89eb-7e83825ca39a'; + private const string USER_1_UUID = '15572057-0605-482a-9903-115ea8243474'; public function testRevokeTokenUser(): void { diff --git a/tests/FeatureTests/Endpoint/Element/DeleteElementNodeTest.php b/tests/FeatureTests/Endpoint/Element/DeleteElementNodeTest.php index f1ded80d..dcdb48bc 100644 --- a/tests/FeatureTests/Endpoint/Element/DeleteElementNodeTest.php +++ b/tests/FeatureTests/Endpoint/Element/DeleteElementNodeTest.php @@ -6,8 +6,8 @@ class DeleteElementNodeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:CevJS3ZkDtJcCdqEhFKqWF'; - public const DATA = '55cce573-1377-4781-be16-8b81587aca10'; + private const string TOKEN = 'secret-token:CevJS3ZkDtJcCdqEhFKqWF'; + private const string DATA = '55cce573-1377-4781-be16-8b81587aca10'; public function testDeleteNode(): void { diff --git a/tests/FeatureTests/Endpoint/Element/DeleteElementRelationTest.php b/tests/FeatureTests/Endpoint/Element/DeleteElementRelationTest.php index a0e02459..ef5ca99b 100644 --- a/tests/FeatureTests/Endpoint/Element/DeleteElementRelationTest.php +++ b/tests/FeatureTests/Endpoint/Element/DeleteElementRelationTest.php @@ -6,8 +6,8 @@ class DeleteElementRelationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:DZnGleUhhBS5CY2T3JUkFY'; - public const RELATION = '15491c7e-49b2-4c30-8762-2cb78b8503ea'; + private const string TOKEN = 'secret-token:DZnGleUhhBS5CY2T3JUkFY'; + private const string RELATION = '15491c7e-49b2-4c30-8762-2cb78b8503ea'; public function testDeleteRelation(): void { diff --git a/tests/FeatureTests/Endpoint/Element/GetChildrenTest.php b/tests/FeatureTests/Endpoint/Element/GetChildrenTest.php index 695600bb..a37e3d4a 100644 --- a/tests/FeatureTests/Endpoint/Element/GetChildrenTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetChildrenTest.php @@ -6,12 +6,12 @@ class GetChildrenTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:OTYRavhRMtCilv30hiX617'; - public const PARENT = '1219e253-b147-4fa6-a567-5a79db2d2eb3'; + private const string TOKEN = 'secret-token:OTYRavhRMtCilv30hiX617'; + private const string PARENT_UUID = '1219e253-b147-4fa6-a567-5a79db2d2eb3'; public function testGetChildren(): void { - $response = $this->runGetRequest(sprintf('/%s/children', self::PARENT), self::TOKEN); + $response = $this->runGetRequest(sprintf('/%s/children', self::PARENT_UUID), self::TOKEN); $this->assertIsCollectionResponse($response, 3, 3); } } diff --git a/tests/FeatureTests/Endpoint/Element/GetElementNodeTest.php b/tests/FeatureTests/Endpoint/Element/GetElementNodeTest.php index 9d28c512..a180696c 100644 --- a/tests/FeatureTests/Endpoint/Element/GetElementNodeTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetElementNodeTest.php @@ -6,8 +6,8 @@ class GetElementNodeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:MmFndbNiEHUr87EtAl8mH4'; - public const DATA = '59493df1-736f-4860-b4a8-a7ebb2bcd96e'; + private const string TOKEN = 'secret-token:MmFndbNiEHUr87EtAl8mH4'; + private const string DATA = '59493df1-736f-4860-b4a8-a7ebb2bcd96e'; public function testGetElementNode(): void { diff --git a/tests/FeatureTests/Endpoint/Element/GetElementRelationTest.php b/tests/FeatureTests/Endpoint/Element/GetElementRelationTest.php index 4366f0da..f1a9f8f0 100644 --- a/tests/FeatureTests/Endpoint/Element/GetElementRelationTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetElementRelationTest.php @@ -6,8 +6,8 @@ class GetElementRelationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:1cgn8kiSLVMTTZG6DNNII6'; - public const DATA = '8d5a0747-58a9-4c05-9659-8980be4ed4f0'; + private const string TOKEN = 'secret-token:1cgn8kiSLVMTTZG6DNNII6'; + private const string DATA = '8d5a0747-58a9-4c05-9659-8980be4ed4f0'; public function testGetElementRelation(): void { diff --git a/tests/FeatureTests/Endpoint/Element/GetIndexTest.php b/tests/FeatureTests/Endpoint/Element/GetIndexTest.php index 8c086f28..045f4b25 100644 --- a/tests/FeatureTests/Endpoint/Element/GetIndexTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetIndexTest.php @@ -6,7 +6,7 @@ class GetIndexTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:55qfUCKq1JopVlrRCqF0Pr'; + private const string TOKEN = 'secret-token:55qfUCKq1JopVlrRCqF0Pr'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Endpoint/Element/GetParentsTest.php b/tests/FeatureTests/Endpoint/Element/GetParentsTest.php index 171f6844..bf87f96e 100644 --- a/tests/FeatureTests/Endpoint/Element/GetParentsTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetParentsTest.php @@ -6,8 +6,8 @@ class GetParentsTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:TVg2TMLeeK6AJMT4QhNsjA'; - public const CHILD = '65ad4ffe-17b3-4258-894f-561d64abd2db'; + private const string TOKEN = 'secret-token:TVg2TMLeeK6AJMT4QhNsjA'; + private const string CHILD = '65ad4ffe-17b3-4258-894f-561d64abd2db'; public function testGetParents(): void { diff --git a/tests/FeatureTests/Endpoint/Element/GetRelatedTest.php b/tests/FeatureTests/Endpoint/Element/GetRelatedTest.php index 8eb9f56f..1538d801 100644 --- a/tests/FeatureTests/Endpoint/Element/GetRelatedTest.php +++ b/tests/FeatureTests/Endpoint/Element/GetRelatedTest.php @@ -6,8 +6,8 @@ class GetRelatedTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:8PTmlQm8B9QGM5Nen3U4f7'; - public const CENTER = 'b4eee6fe-c177-4454-b809-ef2766658fd5'; + private const string TOKEN = 'secret-token:8PTmlQm8B9QGM5Nen3U4f7'; + private const string CENTER = 'b4eee6fe-c177-4454-b809-ef2766658fd5'; public function testGetRelated(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PatchElementNodeTest.php b/tests/FeatureTests/Endpoint/Element/PatchElementNodeTest.php index d9f1074e..9533cdc8 100644 --- a/tests/FeatureTests/Endpoint/Element/PatchElementNodeTest.php +++ b/tests/FeatureTests/Endpoint/Element/PatchElementNodeTest.php @@ -6,8 +6,8 @@ class PatchElementNodeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:PsN3SfXuql92IjEUkUYZFN'; - public const DATA = 'd77ca32c-8cf2-4ed9-868e-27ae122e9ea1'; + private const string TOKEN = 'secret-token:PsN3SfXuql92IjEUkUYZFN'; + private const string DATA = 'd77ca32c-8cf2-4ed9-868e-27ae122e9ea1'; public function testPutNode(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PatchElementRelationTest.php b/tests/FeatureTests/Endpoint/Element/PatchElementRelationTest.php index b3a82d78..17a13ac4 100644 --- a/tests/FeatureTests/Endpoint/Element/PatchElementRelationTest.php +++ b/tests/FeatureTests/Endpoint/Element/PatchElementRelationTest.php @@ -6,8 +6,8 @@ class PatchElementRelationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:S26Pn61Imv52pWOJ9GuXET'; - public const RELATION = 'd639767c-486c-4714-aa61-8d28ec6be338'; + private const string TOKEN = 'secret-token:S26Pn61Imv52pWOJ9GuXET'; + private const string RELATION = 'd639767c-486c-4714-aa61-8d28ec6be338'; public function testPutRelation(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PostIndexNodeTest.php b/tests/FeatureTests/Endpoint/Element/PostIndexNodeTest.php index aff8586a..9246297c 100644 --- a/tests/FeatureTests/Endpoint/Element/PostIndexNodeTest.php +++ b/tests/FeatureTests/Endpoint/Element/PostIndexNodeTest.php @@ -6,7 +6,7 @@ class PostIndexNodeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:NMASHc1jOGZdU7pEl3j68T'; + private const string TOKEN = 'secret-token:NMASHc1jOGZdU7pEl3j68T'; public function testCreateNode(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PostIndexRelationTest.php b/tests/FeatureTests/Endpoint/Element/PostIndexRelationTest.php index 7d724467..a5c23807 100644 --- a/tests/FeatureTests/Endpoint/Element/PostIndexRelationTest.php +++ b/tests/FeatureTests/Endpoint/Element/PostIndexRelationTest.php @@ -6,9 +6,9 @@ class PostIndexRelationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:OZmOjZnLpek1ppUvog82KR'; - public const START = '2e709799-b84b-487f-837b-9ba92b991614'; - public const END = '8bf94f2b-898e-4e50-9657-6a9a0736a1be'; + private const string TOKEN = 'secret-token:OZmOjZnLpek1ppUvog82KR'; + private const string START = '2e709799-b84b-487f-837b-9ba92b991614'; + private const string END = '8bf94f2b-898e-4e50-9657-6a9a0736a1be'; public function testCreateRelation(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PutElementNodeTest.php b/tests/FeatureTests/Endpoint/Element/PutElementNodeTest.php index 5f6190e8..30a41982 100644 --- a/tests/FeatureTests/Endpoint/Element/PutElementNodeTest.php +++ b/tests/FeatureTests/Endpoint/Element/PutElementNodeTest.php @@ -6,8 +6,8 @@ class PutElementNodeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:SuB0jXgi2sFAkC9su6ecr8'; - public const DATA = 'b0f77cc4-5cd1-4de6-a172-ca49a662e0a7'; + private const string TOKEN = 'secret-token:SuB0jXgi2sFAkC9su6ecr8'; + private const string DATA = 'b0f77cc4-5cd1-4de6-a172-ca49a662e0a7'; public function testPutNode(): void { diff --git a/tests/FeatureTests/Endpoint/Element/PutElementRelationTest.php b/tests/FeatureTests/Endpoint/Element/PutElementRelationTest.php index 44d1bbbc..50a09179 100644 --- a/tests/FeatureTests/Endpoint/Element/PutElementRelationTest.php +++ b/tests/FeatureTests/Endpoint/Element/PutElementRelationTest.php @@ -6,8 +6,8 @@ class PutElementRelationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:7Sm1i6YAFHCW2FFf5KmG3j'; - public const RELATION = '0c3898d0-e0f4-4ad1-a754-347ea0865ac5'; + private const string TOKEN = 'secret-token:7Sm1i6YAFHCW2FFf5KmG3j'; + private const string RELATION = '0c3898d0-e0f4-4ad1-a754-347ea0865ac5'; public function testPutRelation(): void { diff --git a/tests/FeatureTests/Endpoint/File/DeleteFileTest.php b/tests/FeatureTests/Endpoint/File/DeleteFileTest.php index c0c5e8ec..07de3992 100644 --- a/tests/FeatureTests/Endpoint/File/DeleteFileTest.php +++ b/tests/FeatureTests/Endpoint/File/DeleteFileTest.php @@ -6,7 +6,7 @@ class DeleteFileTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testDeleteFileIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/File/GetFileTest.php b/tests/FeatureTests/Endpoint/File/GetFileTest.php index cfef1bbc..a583bc36 100644 --- a/tests/FeatureTests/Endpoint/File/GetFileTest.php +++ b/tests/FeatureTests/Endpoint/File/GetFileTest.php @@ -6,7 +6,7 @@ class GetFileTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testGetFileIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/File/PatchFileTest.php b/tests/FeatureTests/Endpoint/File/PatchFileTest.php index 13658428..24e8b4ad 100644 --- a/tests/FeatureTests/Endpoint/File/PatchFileTest.php +++ b/tests/FeatureTests/Endpoint/File/PatchFileTest.php @@ -6,7 +6,7 @@ class PatchFileTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testPatchFileIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/File/PostFileTest.php b/tests/FeatureTests/Endpoint/File/PostFileTest.php index 6675bfc8..84c85c48 100644 --- a/tests/FeatureTests/Endpoint/File/PostFileTest.php +++ b/tests/FeatureTests/Endpoint/File/PostFileTest.php @@ -6,7 +6,7 @@ class PostFileTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testPostFileIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/File/PutFileTest.php b/tests/FeatureTests/Endpoint/File/PutFileTest.php index 63866133..fe251122 100644 --- a/tests/FeatureTests/Endpoint/File/PutFileTest.php +++ b/tests/FeatureTests/Endpoint/File/PutFileTest.php @@ -6,7 +6,7 @@ class PutFileTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testPutFileIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/Search/SearchTest.php b/tests/FeatureTests/Endpoint/Search/SearchTest.php index 349b5450..d8487654 100644 --- a/tests/FeatureTests/Endpoint/Search/SearchTest.php +++ b/tests/FeatureTests/Endpoint/Search/SearchTest.php @@ -6,8 +6,8 @@ class SearchTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:OTYRavhRMtCilv30hiX617'; - public const PARENT = '1219e253-b147-4fa6-a567-5a79db2d2eb3'; + private const string TOKEN = 'secret-token:OTYRavhRMtCilv30hiX617'; + private const string PARENT_UUID = '1219e253-b147-4fa6-a567-5a79db2d2eb3'; public function testSearch(): void { diff --git a/tests/FeatureTests/Endpoint/User/DeleteTokenTest.php b/tests/FeatureTests/Endpoint/User/DeleteTokenTest.php index d6a58829..01948760 100644 --- a/tests/FeatureTests/Endpoint/User/DeleteTokenTest.php +++ b/tests/FeatureTests/Endpoint/User/DeleteTokenTest.php @@ -6,8 +6,8 @@ class DeleteTokenTest extends BaseRequestTestCase { - public const TOKEN_1 = 'secret-token:HWqEN8ai8eZtnfEIo4e1GI'; - public const TOKEN_2 = 'secret-token:RIaBS3MoIoQRbu45ES4ZTP'; + private const string TOKEN_1 = 'secret-token:HWqEN8ai8eZtnfEIo4e1GI'; + private const string TOKEN_2 = 'secret-token:RIaBS3MoIoQRbu45ES4ZTP'; public function testDeleteToken(): void { diff --git a/tests/FeatureTests/Endpoint/User/GetMeTest.php b/tests/FeatureTests/Endpoint/User/GetMeTest.php index bbc8006d..bbcb7e0a 100644 --- a/tests/FeatureTests/Endpoint/User/GetMeTest.php +++ b/tests/FeatureTests/Endpoint/User/GetMeTest.php @@ -6,8 +6,8 @@ class GetMeTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:S26Pn61Imv52pWOJ9GuXET'; - public const INVALID_TOKEN = 'tokenDoesNotExist'; + private const string TOKEN = 'secret-token:S26Pn61Imv52pWOJ9GuXET'; + private const string INVALID_TOKEN = 'tokenDoesNotExist'; public function testGetAnonymousMe(): void { diff --git a/tests/FeatureTests/Endpoint/User/GetTokenTest.php b/tests/FeatureTests/Endpoint/User/GetTokenTest.php index dd303fa0..88ca19ff 100644 --- a/tests/FeatureTests/Endpoint/User/GetTokenTest.php +++ b/tests/FeatureTests/Endpoint/User/GetTokenTest.php @@ -6,7 +6,7 @@ class GetTokenTest extends BaseRequestTestCase { - private const TOKEN = 'secret-token:7s0vuDVJ1UDH0SErDeaLNe'; + private const string TOKEN = 'secret-token:7s0vuDVJ1UDH0SErDeaLNe'; public function testGetUserToken(): void { diff --git a/tests/FeatureTests/Endpoint/User/PostChangePasswordTest.php b/tests/FeatureTests/Endpoint/User/PostChangePasswordTest.php index cbc44403..ce209133 100644 --- a/tests/FeatureTests/Endpoint/User/PostChangePasswordTest.php +++ b/tests/FeatureTests/Endpoint/User/PostChangePasswordTest.php @@ -6,9 +6,9 @@ class PostChangePasswordTest extends BaseRequestTestCase { - public const EMAIL = 'user@changePassword.user.endpoint.localhost.dev'; - public const PASSWORD = '1234'; - public const NEW_PASSWORD = 'abcd'; + private const string EMAIL = 'user@changePassword.user.endpoint.localhost.dev'; + private const string PASSWORD = '1234'; + private const string NEW_PASSWORD = 'abcd'; public function testChangePassword(): void { diff --git a/tests/FeatureTests/Endpoint/User/PostTokenTest.php b/tests/FeatureTests/Endpoint/User/PostTokenTest.php index 40f302c7..9ac6a48c 100644 --- a/tests/FeatureTests/Endpoint/User/PostTokenTest.php +++ b/tests/FeatureTests/Endpoint/User/PostTokenTest.php @@ -6,9 +6,9 @@ class PostTokenTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:3tgEP9MhD81rkp3qiJcm1U'; - public const EMAIL = 'user@postToken.user.endpoint.localhost.dev'; - public const PASSWORD = '1234'; + private const string TOKEN = 'secret-token:3tgEP9MhD81rkp3qiJcm1U'; + private const string EMAIL = 'user@postToken.user.endpoint.localhost.dev'; + private const string PASSWORD = '1234'; public function testPostToken(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/CopyElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/CopyElementTest.php index c83b6643..4b15a652 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/CopyElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/CopyElementTest.php @@ -6,7 +6,7 @@ class CopyElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testCopyElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/LockElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/LockElementTest.php index 8c9820a3..c13edeca 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/LockElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/LockElementTest.php @@ -6,7 +6,7 @@ class LockElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testLockElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/MkcolElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/MkcolElementTest.php index 519fbab8..65658962 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/MkcolElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/MkcolElementTest.php @@ -6,7 +6,7 @@ class MkcolElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testMkcolElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/MoveElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/MoveElementTest.php index 9402ede5..cd0d319b 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/MoveElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/MoveElementTest.php @@ -6,7 +6,7 @@ class MoveElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testMoveElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/PropfindElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/PropfindElementTest.php index da9102af..a3d3233a 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/PropfindElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/PropfindElementTest.php @@ -6,7 +6,7 @@ class PropfindElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testPropfindElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/ProppatchElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/ProppatchElementTest.php index 46bbc6cf..d1460a36 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/ProppatchElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/ProppatchElementTest.php @@ -6,7 +6,7 @@ class ProppatchElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testProppatchElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/Endpoint/WebDAV/UnlockElementTest.php b/tests/FeatureTests/Endpoint/WebDAV/UnlockElementTest.php index c5bc3783..3e84a216 100644 --- a/tests/FeatureTests/Endpoint/WebDAV/UnlockElementTest.php +++ b/tests/FeatureTests/Endpoint/WebDAV/UnlockElementTest.php @@ -6,7 +6,7 @@ class UnlockElementTest extends BaseRequestTestCase { - private const SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; + private const string SOME_UUID = 'f686f998-cb92-4db2-89e5-d088e4ac34cc'; public function testUnlockElementIsNotImplemented(): void { diff --git a/tests/FeatureTests/General/Edgecases/NoRouteTest.php b/tests/FeatureTests/General/Edgecases/NoRouteTest.php index 6be44235..2479f51e 100644 --- a/tests/FeatureTests/General/Edgecases/NoRouteTest.php +++ b/tests/FeatureTests/General/Edgecases/NoRouteTest.php @@ -6,7 +6,7 @@ class NoRouteTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; + private const string TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; public function testUnknownRouteReturnsCustom404Problem(): void { diff --git a/tests/FeatureTests/General/OwnershipModel/OwnershipModelTest.php b/tests/FeatureTests/General/OwnershipModel/OwnershipModelTest.php index 91aed077..8aba083b 100644 --- a/tests/FeatureTests/General/OwnershipModel/OwnershipModelTest.php +++ b/tests/FeatureTests/General/OwnershipModel/OwnershipModelTest.php @@ -6,13 +6,13 @@ class OwnershipModelTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:INirKZbnZETk6hLD86rfrL'; + private const string TOKEN = 'secret-token:INirKZbnZETk6hLD86rfrL'; - public const USER_UUID = 'e5d6c437-e13c-4fe8-85be-fc12e164eb17'; - public const GROUP_1_UUID = '3d7bf35e-0188-467f-8cb4-6741a1741429'; - public const GROUP_2_UUID = 'dbc96de1-0cb7-4f20-9cfe-d23740af32b0'; - public const DATA_UUID = 'b66de74d-791a-4157-a632-4fdf066e80f2'; - public const TOKEN_UUID = 'fdc9fc1f-1436-437b-a46d-358dbbb086d1'; + private const string USER_UUID = 'e5d6c437-e13c-4fe8-85be-fc12e164eb17'; + private const string GROUP_1_UUID = '3d7bf35e-0188-467f-8cb4-6741a1741429'; + private const string GROUP_2_UUID = 'dbc96de1-0cb7-4f20-9cfe-d23740af32b0'; + private const string DATA_UUID = 'b66de74d-791a-4157-a632-4fdf066e80f2'; + private const string TOKEN_UUID = 'fdc9fc1f-1436-437b-a46d-358dbbb086d1'; public function testIndex(): void { diff --git a/tests/FeatureTests/General/Pagination/ChildrenPaginationTest.php b/tests/FeatureTests/General/Pagination/ChildrenPaginationTest.php index 5b21548a..eda87a14 100644 --- a/tests/FeatureTests/General/Pagination/ChildrenPaginationTest.php +++ b/tests/FeatureTests/General/Pagination/ChildrenPaginationTest.php @@ -6,9 +6,9 @@ class ChildrenPaginationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; - public const PARENT_WITH_MANY_CHILDREN = '1ab54e88-a9cc-481a-b371-8873ca56c51b'; - public const PARENT_WITH_ONE_CHILD = '12ac1946-0efd-43b2-8e8f-fc73a2413b03'; + private const string TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; + private const string PARENT_WITH_MANY_CHILDREN = '1ab54e88-a9cc-481a-b371-8873ca56c51b'; + private const string PARENT_WITH_ONE_CHILD = '12ac1946-0efd-43b2-8e8f-fc73a2413b03'; public function testParentWithManyChildrenPagination(): void { diff --git a/tests/FeatureTests/General/Pagination/ParentsPaginationTest.php b/tests/FeatureTests/General/Pagination/ParentsPaginationTest.php index 9f6a7894..4c00b1b9 100644 --- a/tests/FeatureTests/General/Pagination/ParentsPaginationTest.php +++ b/tests/FeatureTests/General/Pagination/ParentsPaginationTest.php @@ -6,9 +6,9 @@ class ParentsPaginationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; - public const CHILD_WITH_MANY_PARENTS = '27ebaf04-8bd0-4c8b-9fce-c44f8f63312e'; - public const CHILD_WITH_ONE_PARENT = '9b3f66d3-0078-472e-9c38-3cf7499a242a'; + private const string TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; + private const string CHILD_WITH_MANY_PARENTS = '27ebaf04-8bd0-4c8b-9fce-c44f8f63312e'; + private const string CHILD_WITH_ONE_PARENT = '9b3f66d3-0078-472e-9c38-3cf7499a242a'; public function testChildWithManyParentsPagination(): void { diff --git a/tests/FeatureTests/General/Pagination/RelatedPaginationTest.php b/tests/FeatureTests/General/Pagination/RelatedPaginationTest.php index bc8f79ca..15b06352 100644 --- a/tests/FeatureTests/General/Pagination/RelatedPaginationTest.php +++ b/tests/FeatureTests/General/Pagination/RelatedPaginationTest.php @@ -6,9 +6,9 @@ class RelatedPaginationTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; - public const NODE_WITH_MANY_RELATED_ELEMENTS = '1ab54e88-a9cc-481a-b371-8873ca56c51b'; - public const NODE_WITH_TWO_RELATED_ELEMENTS = 'f461a898-36d6-48a3-98a8-0df163d87104'; + private const string TOKEN = 'secret-token:FcXR4LsliYfWkYFKhTVovA'; + private const string NODE_WITH_MANY_RELATED_ELEMENTS = '1ab54e88-a9cc-481a-b371-8873ca56c51b'; + private const string NODE_WITH_TWO_RELATED_ELEMENTS = 'f461a898-36d6-48a3-98a8-0df163d87104'; public function testNodeWithManyRelatedElements(): void { diff --git a/tests/FeatureTests/Security/DeleteTokenTest.php b/tests/FeatureTests/Security/DeleteTokenTest.php index 7818637f..006f061a 100644 --- a/tests/FeatureTests/Security/DeleteTokenTest.php +++ b/tests/FeatureTests/Security/DeleteTokenTest.php @@ -6,10 +6,10 @@ class DeleteTokenTest extends BaseRequestTestCase { - public const TOKEN_1 = 'secret-token:MvsgHPbJY6LhtTbm9jnNXs'; - public const TOKEN_2 = 'secret-token:5nm7j0FE6sPuHqRgjvK40U'; - public const TOKEN_2_UUID = '2ddfc37a-f763-41a6-8826-084aec2a283f'; - public const TOKEN_3 = 'secret-token:KhPjldUIB3YYMU44CUTJpC'; + private const string TOKEN_1 = 'secret-token:MvsgHPbJY6LhtTbm9jnNXs'; + private const string TOKEN_2 = 'secret-token:5nm7j0FE6sPuHqRgjvK40U'; + private const string TOKEN_2_UUID = '2ddfc37a-f763-41a6-8826-084aec2a283f'; + private const string TOKEN_3 = 'secret-token:KhPjldUIB3YYMU44CUTJpC'; public function testDeleteTokenThroughDeleteTokenEndpoint(): void { diff --git a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_01_NoConnectionTest.php b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_01_NoConnectionTest.php index 2f0c12ea..e66f4a8e 100644 --- a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_01_NoConnectionTest.php +++ b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_01_NoConnectionTest.php @@ -6,9 +6,9 @@ class _01_01_NoConnectionTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:451NiderFjTRW7TpoLoSWA'; - public const USER = '33d44651-ba40-4e5e-b2c3-079b9509b068'; - public const DATA = 'b1b253a6-d9a5-45b5-b7a9-1be29ced4df6'; + private const string TOKEN = 'secret-token:451NiderFjTRW7TpoLoSWA'; + private const string USER = '33d44651-ba40-4e5e-b2c3-079b9509b068'; + private const string DATA = 'b1b253a6-d9a5-45b5-b7a9-1be29ced4df6'; /** * @description test 1-01-01-01 diff --git a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_02_NoRelevantConnectionTest.php b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_02_NoRelevantConnectionTest.php index 61376eb9..d1772083 100644 --- a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_02_NoRelevantConnectionTest.php +++ b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_02_NoRelevantConnectionTest.php @@ -6,10 +6,10 @@ class _01_02_NoRelevantConnectionTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:1KLilQkUoSgY4BhbCQimec'; - public const USER = 'c83935f7-bdd6-4eda-ad41-b85e22f5a68f'; - public const DATA = '6a8a8afb-2a07-4fa2-b467-0afa359a4b7e'; - public const RELATION = 'aac81a63-2d2e-40ab-b0bb-471f30a2b119'; + private const string TOKEN = 'secret-token:1KLilQkUoSgY4BhbCQimec'; + private const string USER = 'c83935f7-bdd6-4eda-ad41-b85e22f5a68f'; + private const string DATA = '6a8a8afb-2a07-4fa2-b467-0afa359a4b7e'; + private const string RELATION = 'aac81a63-2d2e-40ab-b0bb-471f30a2b119'; /** * @description test 1-02-01-01 diff --git a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_03_MissingAccessToEitherStartOrEndNodeOfRelationshipsTest.php b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_03_MissingAccessToEitherStartOrEndNodeOfRelationshipsTest.php index ea0efb4f..33627bb3 100644 --- a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_03_MissingAccessToEitherStartOrEndNodeOfRelationshipsTest.php +++ b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_03_MissingAccessToEitherStartOrEndNodeOfRelationshipsTest.php @@ -6,14 +6,14 @@ class _01_03_MissingAccessToEitherStartOrEndNodeOfRelationshipsTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:TNh7DjhjbAicQOmu2GuCZZ'; - public const USER = '4c40eb7d-7150-4e0d-983e-c4d57d5192f0'; - public const OWNS = '6c935653-2003-487d-bc4c-ff2d4a96d515'; - public const DATA_1 = '0400ece8-a5ec-4f2b-bf96-d110bc98e857'; - public const DATA_2 = '3bc1669a-016a-4f10-8bfd-984d341af1bb'; - public const DATA_3 = '15e4d734-dfd5-45a5-a941-59c26c0ca732'; - public const RELATION_1 = '2a47ff59-0979-4452-b766-16ce68e08a7e'; - public const RELATION_2 = '2a47ff59-0979-4452-b766-16ce68e08a7e'; + private const string TOKEN = 'secret-token:TNh7DjhjbAicQOmu2GuCZZ'; + private const string USER = '4c40eb7d-7150-4e0d-983e-c4d57d5192f0'; + private const string OWNS = '6c935653-2003-487d-bc4c-ff2d4a96d515'; + private const string DATA_1 = '0400ece8-a5ec-4f2b-bf96-d110bc98e857'; + private const string DATA_2 = '3bc1669a-016a-4f10-8bfd-984d341af1bb'; + private const string DATA_3 = '15e4d734-dfd5-45a5-a941-59c26c0ca732'; + private const string RELATION_1 = '2a47ff59-0979-4452-b766-16ce68e08a7e'; + private const string RELATION_2 = '2a47ff59-0979-4452-b766-16ce68e08a7e'; /** * @description test 1-03-01-01 diff --git a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_04_OwnsRelationshipsAreDirectionalTest.php b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_04_OwnsRelationshipsAreDirectionalTest.php index a33c3774..d1e43b9f 100644 --- a/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_04_OwnsRelationshipsAreDirectionalTest.php +++ b/tests/FeatureTests/Security/Scenario01BasicNegativeTests/_01_04_OwnsRelationshipsAreDirectionalTest.php @@ -6,15 +6,15 @@ class _01_04_OwnsRelationshipsAreDirectionalTest extends BaseRequestTestCase { - public const TOKEN_1 = 'secret-token:CqDtAdaXFchFHI4BAlaHZC'; - public const TOKEN_2 = 'secret-token:BHaj5TtWZU7tJgEobfYvui'; - public const USER_1 = '3d0aa99e-ae4f-422c-b8a8-ea010871ae8c'; - public const USER_2 = 'f7cb8f04-b641-48f5-ac2f-616ef9ab51ce'; - public const OWNS_1 = '835986a7-f060-4348-b15a-6b419dbed940'; - public const OWNS_2 = 'cd822e3e-c61a-4d03-87fa-ede9ae267668'; - public const OWNS_3 = '500ab8dc-c8a0-485c-9ae0-6768c61eb55f'; - public const DATA_1 = '3e9787bd-7db6-4294-ba8e-ee6f50d2730f'; - public const DATA_2 = '8beca827-9319-493d-a28c-6b1358c2c135'; + private const string TOKEN_1 = 'secret-token:CqDtAdaXFchFHI4BAlaHZC'; + private const string TOKEN_2 = 'secret-token:BHaj5TtWZU7tJgEobfYvui'; + private const string USER_1 = '3d0aa99e-ae4f-422c-b8a8-ea010871ae8c'; + private const string USER_2 = 'f7cb8f04-b641-48f5-ac2f-616ef9ab51ce'; + private const string OWNS_1 = '835986a7-f060-4348-b15a-6b419dbed940'; + private const string OWNS_2 = 'cd822e3e-c61a-4d03-87fa-ede9ae267668'; + private const string OWNS_3 = '500ab8dc-c8a0-485c-9ae0-6768c61eb55f'; + private const string DATA_1 = '3e9787bd-7db6-4294-ba8e-ee6f50d2730f'; + private const string DATA_2 = '8beca827-9319-493d-a28c-6b1358c2c135'; /** * @description test 1-04-01-01 diff --git a/tests/FeatureTests/Security/Scenario02BasicPositiveTests/_02_01_ImmediateNodeOwnershipTest.php b/tests/FeatureTests/Security/Scenario02BasicPositiveTests/_02_01_ImmediateNodeOwnershipTest.php index 9d267b79..632bfebf 100644 --- a/tests/FeatureTests/Security/Scenario02BasicPositiveTests/_02_01_ImmediateNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/Scenario02BasicPositiveTests/_02_01_ImmediateNodeOwnershipTest.php @@ -9,10 +9,10 @@ */ class _02_01_ImmediateNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:P4VWKNQ2A6UaoaQgGSQXRB'; - public const USER = '88f75d78-5ba2-42bc-8a46-4f20651cff2e'; - public const OWNS = 'd9e9b864-81a6-4821-9b11-2a556e762860'; - public const DATA = '7d051aaf-904b-4711-81d8-07067fa94d7e'; + private const string TOKEN = 'secret-token:P4VWKNQ2A6UaoaQgGSQXRB'; + private const string USER = '88f75d78-5ba2-42bc-8a46-4f20651cff2e'; + private const string OWNS = 'd9e9b864-81a6-4821-9b11-2a556e762860'; + private const string DATA = '7d051aaf-904b-4711-81d8-07067fa94d7e'; /** * @description test 2-01-01-01 diff --git a/tests/FeatureTests/Security/Scenario07SearchAccessTests/_07_01_SearchAccessTest.php b/tests/FeatureTests/Security/Scenario07SearchAccessTests/_07_01_SearchAccessTest.php index 557b23dd..0f9feab3 100644 --- a/tests/FeatureTests/Security/Scenario07SearchAccessTests/_07_01_SearchAccessTest.php +++ b/tests/FeatureTests/Security/Scenario07SearchAccessTests/_07_01_SearchAccessTest.php @@ -6,17 +6,17 @@ class _07_01_SearchAccessTest extends BaseRequestTestCase { - public const TOKEN_1 = 'secret-token:Dp6FGPhJplengl8NSAI7vO'; - public const TOKEN_2 = 'secret-token:RDiFmL57a2igibaW21ZFoC'; - public const TOKEN_3 = 'secret-token:MJ04n655khrXMOraf9INcV'; - public const TOKEN_4 = 'secret-token:PfVAPFK1qmE5pqel39Ime8'; - public const TOKEN_5 = 'secret-token:Urhq1nO0p8jQnAZER721r5'; - public const TOKEN_6 = 'secret-token:S8Y7FhkJIotvKnejEcSmdW'; - public const TOKEN_7 = 'secret-token:OSeO4aXCZQorQ977P6XISP'; - public const DATA_1 = '3a3c2f8b-d1bd-40fd-b381-82de60539c9f'; - public const DATA_2 = 'c1bacef0-bdfc-4b13-b2fa-062bea9c0372'; - public const DATA_3 = '2cacaa15-8920-43d4-b885-f53a90035aef'; - public const DATA_4 = 'ef8a72b3-87d0-478c-a665-e134be8b8f7a'; + private const string TOKEN_1 = 'secret-token:Dp6FGPhJplengl8NSAI7vO'; + private const string TOKEN_2 = 'secret-token:RDiFmL57a2igibaW21ZFoC'; + private const string TOKEN_3 = 'secret-token:MJ04n655khrXMOraf9INcV'; + private const string TOKEN_4 = 'secret-token:PfVAPFK1qmE5pqel39Ime8'; + private const string TOKEN_5 = 'secret-token:Urhq1nO0p8jQnAZER721r5'; + private const string TOKEN_6 = 'secret-token:S8Y7FhkJIotvKnejEcSmdW'; + private const string TOKEN_7 = 'secret-token:OSeO4aXCZQorQ977P6XISP'; + private const string DATA_1 = '3a3c2f8b-d1bd-40fd-b381-82de60539c9f'; + private const string DATA_2 = 'c1bacef0-bdfc-4b13-b2fa-062bea9c0372'; + private const string DATA_3 = '2cacaa15-8920-43d4-b885-f53a90035aef'; + private const string DATA_4 = 'ef8a72b3-87d0-478c-a665-e134be8b8f7a'; private function baseSearchTest(string $token): void { diff --git a/tests/FeatureTests/Security/TokenDoesNotReturnInternalFieldsTest.php b/tests/FeatureTests/Security/TokenDoesNotReturnInternalFieldsTest.php index 99f2af8e..c1591320 100644 --- a/tests/FeatureTests/Security/TokenDoesNotReturnInternalFieldsTest.php +++ b/tests/FeatureTests/Security/TokenDoesNotReturnInternalFieldsTest.php @@ -6,8 +6,8 @@ class TokenDoesNotReturnInternalFieldsTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:SaUQctGYKDHdRnm1jj7pG5'; - public const TOKEN_ID = '674dae86-a2cc-4137-a275-a3aca2e1d64f'; + private const string TOKEN = 'secret-token:SaUQctGYKDHdRnm1jj7pG5'; + private const string TOKEN_ID = '674dae86-a2cc-4137-a275-a3aca2e1d64f'; public function testTokenDoesNotReturnInternalFields(): void { diff --git a/tests/FeatureTests/Security/TokenStateTest.php b/tests/FeatureTests/Security/TokenStateTest.php index 64fd917a..9bf33cae 100644 --- a/tests/FeatureTests/Security/TokenStateTest.php +++ b/tests/FeatureTests/Security/TokenStateTest.php @@ -6,10 +6,10 @@ class TokenStateTest extends BaseRequestTestCase { - public const TOKEN_ACTIVE = 'secret-token:VWPtCCQskD6uQnf0CHdNjY'; - public const TOKEN_REVOKED = 'secret-token:63b9ULc3WYvEOaIaXEfCNc'; - public const TOKEN_EXPIRED = 'secret-token:JHU2FrEe7jshvFtrD6BRb3'; - public const DATA_UUID = '048ecc31-0807-463c-a8db-989721c73f26'; + private const string TOKEN_ACTIVE = 'secret-token:VWPtCCQskD6uQnf0CHdNjY'; + private const string TOKEN_REVOKED = 'secret-token:63b9ULc3WYvEOaIaXEfCNc'; + private const string TOKEN_EXPIRED = 'secret-token:JHU2FrEe7jshvFtrD6BRb3'; + private const string DATA_UUID = '048ecc31-0807-463c-a8db-989721c73f26'; public function testAccessingApiWithActiveTokenWorks(): void { diff --git a/tests/FeatureTests/Security/_02_02_ImmediateRelationOwnershipTest.php b/tests/FeatureTests/Security/_02_02_ImmediateRelationOwnershipTest.php index 4ba7cbb5..00443010 100644 --- a/tests/FeatureTests/Security/_02_02_ImmediateRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_02_02_ImmediateRelationOwnershipTest.php @@ -6,13 +6,13 @@ class _02_02_ImmediateRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:Au6srY6s3cW5THS6LeCl9Z'; + private const string TOKEN = 'secret-token:Au6srY6s3cW5THS6LeCl9Z'; - public const OWNS_1 = '5eff5f2e-7dfb-487a-ab81-9bcef466388d'; - public const OWNS_2 = '5234732b-e1ab-4665-be47-10b9a903697f'; - public const RELATION = 'fd9f4b9b-9831-4d8a-be98-a438f28e5038'; - public const DATA_1 = 'b1e85bf9-6a79-4e50-ae5a-ed49beac8cb5'; - public const DATA_2 = '76cc077f-580f-4a6f-ad33-170c545217d3'; + private const string OWNS_1 = '5eff5f2e-7dfb-487a-ab81-9bcef466388d'; + private const string OWNS_2 = '5234732b-e1ab-4665-be47-10b9a903697f'; + private const string RELATION = 'fd9f4b9b-9831-4d8a-be98-a438f28e5038'; + private const string DATA_1 = 'b1e85bf9-6a79-4e50-ae5a-ed49beac8cb5'; + private const string DATA_2 = '76cc077f-580f-4a6f-ad33-170c545217d3'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_02_03_PathNodeOwnershipTest.php b/tests/FeatureTests/Security/_02_03_PathNodeOwnershipTest.php index 55eb8c0c..724107f1 100644 --- a/tests/FeatureTests/Security/_02_03_PathNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_02_03_PathNodeOwnershipTest.php @@ -6,11 +6,11 @@ class _02_03_PathNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:6EorX1or81QkQDVp8uJMIV'; + private const string TOKEN = 'secret-token:6EorX1or81QkQDVp8uJMIV'; - public const DATA_1 = '237defce-d3be-44c5-b8a1-8288b76851e4'; - public const DATA_2 = '512e0d66-68bd-4515-b969-fa0eb739ea50'; - public const DATA_3 = '20ca0b80-9a92-4425-896d-bad6129f9c2e'; + private const string DATA_1 = '237defce-d3be-44c5-b8a1-8288b76851e4'; + private const string DATA_2 = '512e0d66-68bd-4515-b969-fa0eb739ea50'; + private const string DATA_3 = '20ca0b80-9a92-4425-896d-bad6129f9c2e'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_02_04_PathRelationOwnershipTest.php b/tests/FeatureTests/Security/_02_04_PathRelationOwnershipTest.php index 4d6ef04a..e3e7cd56 100644 --- a/tests/FeatureTests/Security/_02_04_PathRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_02_04_PathRelationOwnershipTest.php @@ -6,14 +6,14 @@ class _02_04_PathRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:JbPPgmVodPsBPGOpbS2NdD'; + private const string TOKEN = 'secret-token:JbPPgmVodPsBPGOpbS2NdD'; - public const DATA_1 = '3d6e975b-3c1e-40ea-a50d-21dc3a1df97b'; - public const DATA_2 = 'ec5ea3d7-d192-4e96-8933-d03a1e16f978'; - public const DATA_3 = 'a9a5ed76-755d-43ed-9a5d-8a1de910132c'; - public const DATA_4 = '0a27046a-4ed6-4937-aa5e-418296ab8612'; - public const DATA_5 = '62b6f1bf-25e3-43b5-b9c9-1920d62d77f6'; - public const DATA_6 = '1822cdab-a246-4887-99f7-e03a0f62ce45'; + private const string DATA_1 = '3d6e975b-3c1e-40ea-a50d-21dc3a1df97b'; + private const string DATA_2 = 'ec5ea3d7-d192-4e96-8933-d03a1e16f978'; + private const string DATA_3 = 'a9a5ed76-755d-43ed-9a5d-8a1de910132c'; + private const string DATA_4 = '0a27046a-4ed6-4937-aa5e-418296ab8612'; + private const string DATA_5 = '62b6f1bf-25e3-43b5-b9c9-1920d62d77f6'; + private const string DATA_6 = '1822cdab-a246-4887-99f7-e03a0f62ce45'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_03_01_GroupImmediateNodeOwnershipTest.php b/tests/FeatureTests/Security/_03_01_GroupImmediateNodeOwnershipTest.php index 0c55f18c..34761303 100644 --- a/tests/FeatureTests/Security/_03_01_GroupImmediateNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_03_01_GroupImmediateNodeOwnershipTest.php @@ -6,13 +6,13 @@ class _03_01_GroupImmediateNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:7RXVmoiChLrKPUJNjdEZvT'; + private const string TOKEN = 'secret-token:7RXVmoiChLrKPUJNjdEZvT'; - public const GROUP = 'f95c84f8-c33a-410a-93be-da0d65c1f0de'; - public const DATA = '56acb0c6-aaed-451f-b277-bceac61d7632'; - public const IS_IN_GROUP = 'f656b91e-6c2f-4dda-a4ff-69717e0b4559'; - public const OWNS_DATA = 'c76a7d30-2250-4bb3-bffd-e5f83a2ccd5b'; - public const OWNS_TOKEN = '2541a4d1-73f1-4716-8de8-2caf3c943d15'; + private const string GROUP = 'f95c84f8-c33a-410a-93be-da0d65c1f0de'; + private const string DATA = '56acb0c6-aaed-451f-b277-bceac61d7632'; + private const string IS_IN_GROUP = 'f656b91e-6c2f-4dda-a4ff-69717e0b4559'; + private const string OWNS_DATA = 'c76a7d30-2250-4bb3-bffd-e5f83a2ccd5b'; + private const string OWNS_TOKEN = '2541a4d1-73f1-4716-8de8-2caf3c943d15'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_03_02_GroupImmediateRelationOwnershipTest.php b/tests/FeatureTests/Security/_03_02_GroupImmediateRelationOwnershipTest.php index cd1a79e5..29e59a6d 100644 --- a/tests/FeatureTests/Security/_03_02_GroupImmediateRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_03_02_GroupImmediateRelationOwnershipTest.php @@ -6,16 +6,16 @@ class _03_02_GroupImmediateRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:JhQYvkR2HUHuukHbOgOuH1'; + private const string TOKEN = 'secret-token:JhQYvkR2HUHuukHbOgOuH1'; - public const GROUP = 'f935bed2-cf13-406b-8ad2-0a943b9329f1'; - public const DATA_1 = 'bc69b38c-d087-4355-97a9-4e4ec48e4810'; - public const DATA_2 = '04cc4124-8b39-41ad-979c-e389e7c73fc6'; - public const IS_IN_GROUP = 'c2e419ef-998c-48c6-8af3-e9db2b9bff17'; - public const OWNS_TOKEN = '2643d165-8e0f-4978-b344-c360ce63ae41'; - public const OWNS_DATA_1 = 'a8805631-5a83-49cb-af8b-628ff727b6d4'; - public const OWNS_DATA_2 = '0bfd0925-75e1-4574-8cab-0e97267e7052'; - public const RELATION = '704eac29-cda1-441f-93b4-069df785b9c2'; + private const string GROUP = 'f935bed2-cf13-406b-8ad2-0a943b9329f1'; + private const string DATA_1 = 'bc69b38c-d087-4355-97a9-4e4ec48e4810'; + private const string DATA_2 = '04cc4124-8b39-41ad-979c-e389e7c73fc6'; + private const string IS_IN_GROUP = 'c2e419ef-998c-48c6-8af3-e9db2b9bff17'; + private const string OWNS_TOKEN = '2643d165-8e0f-4978-b344-c360ce63ae41'; + private const string OWNS_DATA_1 = 'a8805631-5a83-49cb-af8b-628ff727b6d4'; + private const string OWNS_DATA_2 = '0bfd0925-75e1-4574-8cab-0e97267e7052'; + private const string RELATION = '704eac29-cda1-441f-93b4-069df785b9c2'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_03_03_GroupPathNodeOwnershipTest.php b/tests/FeatureTests/Security/_03_03_GroupPathNodeOwnershipTest.php index 68af343b..3b39e554 100644 --- a/tests/FeatureTests/Security/_03_03_GroupPathNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_03_03_GroupPathNodeOwnershipTest.php @@ -6,12 +6,12 @@ class _03_03_GroupPathNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:9SmOltFEeOc50tSJCFKiv'; + private const string TOKEN = 'secret-token:9SmOltFEeOc50tSJCFKiv'; - public const GROUP = '84db789d-a8aa-4042-86f4-6e6aa0f59558'; - public const DATA_1 = '4a2095a3-9908-456f-82ad-2c0b8f7ef240'; - public const DATA_2 = 'f11927d2-e50a-4134-9920-be1d3fcfc3c7'; - public const DATA_3 = 'd6f7bf30-cfb1-4875-a2b1-df1d982752a7'; + private const string GROUP = '84db789d-a8aa-4042-86f4-6e6aa0f59558'; + private const string DATA_1 = '4a2095a3-9908-456f-82ad-2c0b8f7ef240'; + private const string DATA_2 = 'f11927d2-e50a-4134-9920-be1d3fcfc3c7'; + private const string DATA_3 = 'd6f7bf30-cfb1-4875-a2b1-df1d982752a7'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_03_04_GroupPathRelationOwnershipTest.php b/tests/FeatureTests/Security/_03_04_GroupPathRelationOwnershipTest.php index ffbedeb7..055a8cd0 100644 --- a/tests/FeatureTests/Security/_03_04_GroupPathRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_03_04_GroupPathRelationOwnershipTest.php @@ -6,15 +6,15 @@ class _03_04_GroupPathRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:8c0ciT8ILZPtRncR3qOfFE'; + private const string TOKEN = 'secret-token:8c0ciT8ILZPtRncR3qOfFE'; - public const GROUP = '147684d6-b830-4193-a1e4-4ace37e29a55'; - public const DATA_1 = 'dab654bd-89da-4698-8452-838fdfef5c98'; - public const DATA_2 = 'fdbd8eab-fff4-49ea-b6e0-f943a553ce9e'; - public const DATA_3 = '62940e0b-01c6-4495-ad73-b32aecacd994'; - public const DATA_4 = 'bc90d5d7-08f5-4a73-986d-ae6b72a08c83'; - public const DATA_5 = 'cb97d48d-40fd-4006-8956-1206181b163d'; - public const DATA_6 = '9955c4a5-7d8c-4d94-8959-1c9055d496e1'; + private const string GROUP = '147684d6-b830-4193-a1e4-4ace37e29a55'; + private const string DATA_1 = 'dab654bd-89da-4698-8452-838fdfef5c98'; + private const string DATA_2 = 'fdbd8eab-fff4-49ea-b6e0-f943a553ce9e'; + private const string DATA_3 = '62940e0b-01c6-4495-ad73-b32aecacd994'; + private const string DATA_4 = 'bc90d5d7-08f5-4a73-986d-ae6b72a08c83'; + private const string DATA_5 = 'cb97d48d-40fd-4006-8956-1206181b163d'; + private const string DATA_6 = '9955c4a5-7d8c-4d94-8959-1c9055d496e1'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_04_01_GroupsImmediateNodeOwnershipTest.php b/tests/FeatureTests/Security/_04_01_GroupsImmediateNodeOwnershipTest.php index edbbacb3..0639206e 100644 --- a/tests/FeatureTests/Security/_04_01_GroupsImmediateNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_04_01_GroupsImmediateNodeOwnershipTest.php @@ -6,17 +6,17 @@ class _04_01_GroupsImmediateNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:GVt8Z7QsZf6c8Yu6e1gnB8'; + private const string TOKEN = 'secret-token:GVt8Z7QsZf6c8Yu6e1gnB8'; - public const GROUP_1 = '8978f6cb-9a55-4727-9df4-ebd2dafe1352'; - public const GROUP_2 = '99f40c22-1b11-48bf-b9f4-350cac7b1fdd'; - public const GROUP_3 = 'f1c7a5c3-5135-458f-b5a3-940335b90d31'; - public const DATA = '896b608e-0dba-4f5f-8b39-522bc3e079c1'; - public const IS_IN_GROUP_1 = '8c9d0790-7faa-4310-abab-8800fd2c14d4'; - public const IS_IN_GROUP_2 = '0b9cf8e7-6bf0-4697-adb5-65b7145b84c5'; - public const IS_IN_GROUP_3 = '60f2a995-4c11-4c6c-a16b-2da6edbcaf44'; - public const OWNS_DATA = '1ef6accb-650a-459e-87fb-3209f15baa51'; - public const OWNS_TOKEN = '5bb067b2-3e28-4f2d-b0c9-0aa306f1d15f'; + private const string GROUP_1 = '8978f6cb-9a55-4727-9df4-ebd2dafe1352'; + private const string GROUP_2 = '99f40c22-1b11-48bf-b9f4-350cac7b1fdd'; + private const string GROUP_3 = 'f1c7a5c3-5135-458f-b5a3-940335b90d31'; + private const string DATA = '896b608e-0dba-4f5f-8b39-522bc3e079c1'; + private const string IS_IN_GROUP_1 = '8c9d0790-7faa-4310-abab-8800fd2c14d4'; + private const string IS_IN_GROUP_2 = '0b9cf8e7-6bf0-4697-adb5-65b7145b84c5'; + private const string IS_IN_GROUP_3 = '60f2a995-4c11-4c6c-a16b-2da6edbcaf44'; + private const string OWNS_DATA = '1ef6accb-650a-459e-87fb-3209f15baa51'; + private const string OWNS_TOKEN = '5bb067b2-3e28-4f2d-b0c9-0aa306f1d15f'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_04_02_GroupsImmediateRelationOwnershipTest.php b/tests/FeatureTests/Security/_04_02_GroupsImmediateRelationOwnershipTest.php index 74d3e0ca..7d8928cb 100644 --- a/tests/FeatureTests/Security/_04_02_GroupsImmediateRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_04_02_GroupsImmediateRelationOwnershipTest.php @@ -6,20 +6,20 @@ class _04_02_GroupsImmediateRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:UlPeqBZJqgoaJFLvBKC26'; + private const string TOKEN = 'secret-token:UlPeqBZJqgoaJFLvBKC26'; - public const GROUP_1 = 'bb05dead-3efb-47b9-b22b-12716eaefdb9'; - public const GROUP_2 = '78e0af0b-8657-43ae-93b9-5f3a88bf8664'; - public const GROUP_3 = '9133d23d-0a4c-4f7b-a1f4-d84587ae9b3c'; - public const DATA_1 = 'd79d90f5-7929-4ebd-8d06-1fa9a15aa63e'; - public const DATA_2 = '450b8457-641c-4685-a171-2c371ce7f3f0'; - public const IS_IN_GROUP_1 = '5f3bdada-0ae1-442d-a4b7-1a1f725c0a6e'; - public const IS_IN_GROUP_2 = 'c6eda8b4-bd6c-4df7-bf4a-41d2dc88e2cc'; - public const IS_IN_GROUP_3 = 'b74d5ae5-c534-4cf7-97a2-5190f8be8ba8'; - public const OWNS_DATA_1 = 'fd90f318-dc45-4432-a1a5-39b4e24d3b15'; - public const OWNS_DATA_2 = '3481bf4d-e393-4fd3-b0e9-131155495dbe'; - public const OWNS_TOKEN = '2bef8c63-b319-49a2-9431-dbe88b780e6a'; - public const RELATION = '933d3e3b-da81-4f3e-9320-122c71ddcfd9'; + private const string GROUP_1 = 'bb05dead-3efb-47b9-b22b-12716eaefdb9'; + private const string GROUP_2 = '78e0af0b-8657-43ae-93b9-5f3a88bf8664'; + private const string GROUP_3 = '9133d23d-0a4c-4f7b-a1f4-d84587ae9b3c'; + private const string DATA_1 = 'd79d90f5-7929-4ebd-8d06-1fa9a15aa63e'; + private const string DATA_2 = '450b8457-641c-4685-a171-2c371ce7f3f0'; + private const string IS_IN_GROUP_1 = '5f3bdada-0ae1-442d-a4b7-1a1f725c0a6e'; + private const string IS_IN_GROUP_2 = 'c6eda8b4-bd6c-4df7-bf4a-41d2dc88e2cc'; + private const string IS_IN_GROUP_3 = 'b74d5ae5-c534-4cf7-97a2-5190f8be8ba8'; + private const string OWNS_DATA_1 = 'fd90f318-dc45-4432-a1a5-39b4e24d3b15'; + private const string OWNS_DATA_2 = '3481bf4d-e393-4fd3-b0e9-131155495dbe'; + private const string OWNS_TOKEN = '2bef8c63-b319-49a2-9431-dbe88b780e6a'; + private const string RELATION = '933d3e3b-da81-4f3e-9320-122c71ddcfd9'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_04_03_GroupsPathNodeOwnershipTest.php b/tests/FeatureTests/Security/_04_03_GroupsPathNodeOwnershipTest.php index 9f41cce6..c36feb7d 100644 --- a/tests/FeatureTests/Security/_04_03_GroupsPathNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_04_03_GroupsPathNodeOwnershipTest.php @@ -6,14 +6,14 @@ class _04_03_GroupsPathNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:DXdhJefbNLWj8qrcfYZ8K2'; + private const string TOKEN = 'secret-token:DXdhJefbNLWj8qrcfYZ8K2'; - public const GROUP_1 = 'ae221c97-9f91-450c-bbb8-fce9f78f6c89'; - public const GROUP_2 = '4995a840-23f3-4b06-a5ad-605dd21aa135'; - public const GROUP_3 = '989775e2-7909-428c-87d5-91de5f193420'; - public const DATA_1 = 'c01a334d-2801-408c-bbdf-c9542ae5edd9'; - public const DATA_2 = 'deac8c82-12b8-4ee2-9916-317d2a8aeae8'; - public const DATA_3 = '81873c2d-384f-4166-a7c3-991b33518b9b'; + private const string GROUP_1 = 'ae221c97-9f91-450c-bbb8-fce9f78f6c89'; + private const string GROUP_2 = '4995a840-23f3-4b06-a5ad-605dd21aa135'; + private const string GROUP_3 = '989775e2-7909-428c-87d5-91de5f193420'; + private const string DATA_1 = 'c01a334d-2801-408c-bbdf-c9542ae5edd9'; + private const string DATA_2 = 'deac8c82-12b8-4ee2-9916-317d2a8aeae8'; + private const string DATA_3 = '81873c2d-384f-4166-a7c3-991b33518b9b'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_04_04_GroupsPathNodeOwnershipTest.php b/tests/FeatureTests/Security/_04_04_GroupsPathNodeOwnershipTest.php index 46f52644..4309fa13 100644 --- a/tests/FeatureTests/Security/_04_04_GroupsPathNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_04_04_GroupsPathNodeOwnershipTest.php @@ -6,17 +6,17 @@ class _04_04_GroupsPathNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:OnfkWLnGBZWcrWNdYa6m7a'; + private const string TOKEN = 'secret-token:OnfkWLnGBZWcrWNdYa6m7a'; - public const GROUP_1 = '8e3de198-e3a0-4eb8-876d-018aa5843281'; - public const GROUP_2 = '29941ee9-fdc8-4d85-810e-707c2e199ce9'; - public const GROUP_3 = 'c943c9c5-4992-418a-80ff-bfa2e9089eab'; - public const DATA_1 = '4d0dad16-56d1-4206-b7bb-312e6684f731'; - public const DATA_2 = 'cb5317df-cb52-449a-97e7-c9b7f80f65d0'; - public const DATA_3 = '1353ff2e-1bde-4162-ac26-d82167e6f708'; - public const DATA_4 = '298ac7a6-3576-4ae4-9c4e-6785ec805be6'; - public const DATA_5 = 'b5950a3d-3634-4935-8bbc-14fbf2d774ae'; - public const DATA_6 = '1719ca0c-dc8e-4b7a-a6a1-31f5cf31e9f5'; + private const string GROUP_1 = '8e3de198-e3a0-4eb8-876d-018aa5843281'; + private const string GROUP_2 = '29941ee9-fdc8-4d85-810e-707c2e199ce9'; + private const string GROUP_3 = 'c943c9c5-4992-418a-80ff-bfa2e9089eab'; + private const string DATA_1 = '4d0dad16-56d1-4206-b7bb-312e6684f731'; + private const string DATA_2 = 'cb5317df-cb52-449a-97e7-c9b7f80f65d0'; + private const string DATA_3 = '1353ff2e-1bde-4162-ac26-d82167e6f708'; + private const string DATA_4 = '298ac7a6-3576-4ae4-9c4e-6785ec805be6'; + private const string DATA_5 = 'b5950a3d-3634-4935-8bbc-14fbf2d774ae'; + private const string DATA_6 = '1719ca0c-dc8e-4b7a-a6a1-31f5cf31e9f5'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_05_01_MixedNodeOwnershipTest.php b/tests/FeatureTests/Security/_05_01_MixedNodeOwnershipTest.php index cc652b46..c4b962d9 100644 --- a/tests/FeatureTests/Security/_05_01_MixedNodeOwnershipTest.php +++ b/tests/FeatureTests/Security/_05_01_MixedNodeOwnershipTest.php @@ -6,13 +6,13 @@ class _05_01_MixedNodeOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:FD6njLoO4k8cmFJbluNkfT'; + private const string TOKEN = 'secret-token:FD6njLoO4k8cmFJbluNkfT'; - public const GROUP_1 = 'e849e075-5824-4bc1-9d37-bca918912e48'; - public const GROUP_2 = 'a6eef102-6982-40c9-b47d-670f078cdab4'; - public const DATA_1 = '81535f3e-20e8-46e8-b4c3-970391974cd7'; - public const DATA_2 = '29904788-ce0a-4989-bc84-81fe62bc59e2'; - public const DATA_3 = '012a7959-7a8f-4c3e-9ca1-a4bf2ac0637b'; + private const string GROUP_1 = 'e849e075-5824-4bc1-9d37-bca918912e48'; + private const string GROUP_2 = 'a6eef102-6982-40c9-b47d-670f078cdab4'; + private const string DATA_1 = '81535f3e-20e8-46e8-b4c3-970391974cd7'; + private const string DATA_2 = '29904788-ce0a-4989-bc84-81fe62bc59e2'; + private const string DATA_3 = '012a7959-7a8f-4c3e-9ca1-a4bf2ac0637b'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_05_02_MixedRelationOwnershipTest.php b/tests/FeatureTests/Security/_05_02_MixedRelationOwnershipTest.php index a1f52254..f727eb3f 100644 --- a/tests/FeatureTests/Security/_05_02_MixedRelationOwnershipTest.php +++ b/tests/FeatureTests/Security/_05_02_MixedRelationOwnershipTest.php @@ -6,16 +6,16 @@ class _05_02_MixedRelationOwnershipTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:HGDfrDYh5T5hFerngpuY8I'; + private const string TOKEN = 'secret-token:HGDfrDYh5T5hFerngpuY8I'; - public const GROUP_1 = '17322018-bf8d-4aff-aae1-e028bbdfbb16'; - public const GROUP_2 = '96b251b5-56b6-43fa-9f62-dcd85892f0d3'; - public const DATA_1 = 'f2f0fd3a-5d5f-4667-849d-06a3798614d6'; - public const DATA_2 = '537bde6e-a661-4f31-b395-adc6bf3383c1'; - public const DATA_3 = 'b67ebe02-0c3d-4c8f-bbb0-8bdf2fd57290'; - public const DATA_4 = '01a23f36-fa76-4a9c-acfa-11803ebba906'; - public const DATA_5 = '3d23a51c-861c-48c7-9233-7f8c27156400'; - public const DATA_6 = '21003b34-684b-4736-a415-47e739cb9c24'; + private const string GROUP_1 = '17322018-bf8d-4aff-aae1-e028bbdfbb16'; + private const string GROUP_2 = '96b251b5-56b6-43fa-9f62-dcd85892f0d3'; + private const string DATA_1 = 'f2f0fd3a-5d5f-4667-849d-06a3798614d6'; + private const string DATA_2 = '537bde6e-a661-4f31-b395-adc6bf3383c1'; + private const string DATA_3 = 'b67ebe02-0c3d-4c8f-bbb0-8bdf2fd57290'; + private const string DATA_4 = '01a23f36-fa76-4a9c-acfa-11803ebba906'; + private const string DATA_5 = '3d23a51c-861c-48c7-9233-7f8c27156400'; + private const string DATA_6 = '21003b34-684b-4736-a415-47e739cb9c24'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_06_01_LimitedReadAccessTest.php b/tests/FeatureTests/Security/_06_01_LimitedReadAccessTest.php index 6c8a6833..7391c537 100644 --- a/tests/FeatureTests/Security/_06_01_LimitedReadAccessTest.php +++ b/tests/FeatureTests/Security/_06_01_LimitedReadAccessTest.php @@ -6,23 +6,23 @@ class _06_01_LimitedReadAccessTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:S55SWBoCDt99LT95JTIWg0'; + private const string TOKEN = 'secret-token:S55SWBoCDt99LT95JTIWg0'; - public const GROUP_1 = 'fc7ddad0-d816-4243-a9e3-eb59ff02f119'; - public const GROUP_2 = 'ed2c5d71-8921-4229-9f37-1b8fe3c3d96e'; - public const GROUP_3 = 'c3a1868f-dc95-4c2d-bee7-8a6a7fc6a306'; - public const DATA_1 = '135a2d64-8c7a-41d5-9f4b-75fef057846a'; - public const DATA_2 = '7b08288b-9bd6-4acb-a20c-c75aacce613d'; - public const DATA_3 = '120bd9e8-8569-4256-bc18-4ca2cebaa73e'; - public const DATA_4 = 'abe4cba0-74af-4dc7-b38f-e4396a9e1bd6'; - public const DATA_5 = 'c91e6684-cc98-407d-af01-e94bc9420b9a'; - public const DATA_6 = 'ea60d6ea-1c30-4b8c-86f4-97a15c1a4938'; - public const DATA_7 = '26470e60-daf1-4225-8abb-30eb8d42188f'; - public const DATA_8 = '5fd5f92f-a144-4c89-ad16-f3562fb0f18c'; - public const DATA_9 = '4fc780e0-ad5f-431a-916e-52e24b38874a'; - public const RELATIONSHIP_1 = '70bdab5d-6539-4fc9-aa97-3196f5046b65'; - public const RELATIONSHIP_2 = '66ca9fe9-d293-48cf-829a-1ba8eee2ee4e'; - public const RELATIONSHIP_3 = 'b6fe1d8c-4e19-4359-8f51-dbfed781c513'; + private const string GROUP_1 = 'fc7ddad0-d816-4243-a9e3-eb59ff02f119'; + private const string GROUP_2 = 'ed2c5d71-8921-4229-9f37-1b8fe3c3d96e'; + private const string GROUP_3 = 'c3a1868f-dc95-4c2d-bee7-8a6a7fc6a306'; + private const string DATA_1 = '135a2d64-8c7a-41d5-9f4b-75fef057846a'; + private const string DATA_2 = '7b08288b-9bd6-4acb-a20c-c75aacce613d'; + private const string DATA_3 = '120bd9e8-8569-4256-bc18-4ca2cebaa73e'; + private const string DATA_4 = 'abe4cba0-74af-4dc7-b38f-e4396a9e1bd6'; + private const string DATA_5 = 'c91e6684-cc98-407d-af01-e94bc9420b9a'; + private const string DATA_6 = 'ea60d6ea-1c30-4b8c-86f4-97a15c1a4938'; + private const string DATA_7 = '26470e60-daf1-4225-8abb-30eb8d42188f'; + private const string DATA_8 = '5fd5f92f-a144-4c89-ad16-f3562fb0f18c'; + private const string DATA_9 = '4fc780e0-ad5f-431a-916e-52e24b38874a'; + private const string RELATIONSHIP_1 = '70bdab5d-6539-4fc9-aa97-3196f5046b65'; + private const string RELATIONSHIP_2 = '66ca9fe9-d293-48cf-829a-1ba8eee2ee4e'; + private const string RELATIONSHIP_3 = 'b6fe1d8c-4e19-4359-8f51-dbfed781c513'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_99_01_IsInGroupAfterOwnsHaveNoEffectTest.php b/tests/FeatureTests/Security/_99_01_IsInGroupAfterOwnsHaveNoEffectTest.php index 8e418fa8..e1b34670 100644 --- a/tests/FeatureTests/Security/_99_01_IsInGroupAfterOwnsHaveNoEffectTest.php +++ b/tests/FeatureTests/Security/_99_01_IsInGroupAfterOwnsHaveNoEffectTest.php @@ -6,17 +6,17 @@ class _99_01_IsInGroupAfterOwnsHaveNoEffectTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:AZuaUFmZ6YB2g14CO1qAlM'; - - public const GROUP_1 = 'a42beeb2-4c8f-4c31-ada8-fc1f127beb77'; - public const GROUP_2 = '8a97b81c-56cb-4e09-a5e4-c80b7f6f2ee3'; - public const DATA_1 = 'fbde7b0a-ed3b-4c19-bb95-2952a37feca1'; - public const DATA_2 = '969e41af-a868-4026-b072-26791149f58b'; - public const OWNS_TOKEN = '55a39b35-4f6d-4a98-b048-06352d201059'; - public const IS_IN_GROUP_1 = '1b9c5238-335c-4023-af50-673178e7734f'; - public const IS_IN_GROUP_2 = '0d105c9b-f801-44be-82dc-28559b0412b0'; - public const OWNS_DATA_1 = 'bf3c3163-375f-41e6-b330-68fb2835a2b3'; - public const OWNS_DATA_2 = 'ee0291eb-71c3-4402-b0f6-366254f57164'; + private const string TOKEN = 'secret-token:AZuaUFmZ6YB2g14CO1qAlM'; + + private const string GROUP_1 = 'a42beeb2-4c8f-4c31-ada8-fc1f127beb77'; + private const string GROUP_2 = '8a97b81c-56cb-4e09-a5e4-c80b7f6f2ee3'; + private const string DATA_1 = 'fbde7b0a-ed3b-4c19-bb95-2952a37feca1'; + private const string DATA_2 = '969e41af-a868-4026-b072-26791149f58b'; + private const string OWNS_TOKEN = '55a39b35-4f6d-4a98-b048-06352d201059'; + private const string IS_IN_GROUP_1 = '1b9c5238-335c-4023-af50-673178e7734f'; + private const string IS_IN_GROUP_2 = '0d105c9b-f801-44be-82dc-28559b0412b0'; + private const string OWNS_DATA_1 = 'bf3c3163-375f-41e6-b330-68fb2835a2b3'; + private const string OWNS_DATA_2 = 'ee0291eb-71c3-4402-b0f6-366254f57164'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_99_02_OwningGroupsGiveDirectAccessButNotToRelatedGroupsTest.php b/tests/FeatureTests/Security/_99_02_OwningGroupsGiveDirectAccessButNotToRelatedGroupsTest.php index 30b020c7..c219a09c 100644 --- a/tests/FeatureTests/Security/_99_02_OwningGroupsGiveDirectAccessButNotToRelatedGroupsTest.php +++ b/tests/FeatureTests/Security/_99_02_OwningGroupsGiveDirectAccessButNotToRelatedGroupsTest.php @@ -6,14 +6,14 @@ class _99_02_OwningGroupsGiveDirectAccessButNotToRelatedGroupsTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:SaUQctGYKDHdRnm1jj7pG5'; + private const string TOKEN = 'secret-token:SaUQctGYKDHdRnm1jj7pG5'; - public const GROUP_1 = '56dbdf19-8669-43a5-b332-3845e52e9cae'; - public const GROUP_2 = '2f72bf0b-c6f2-45a9-9769-2c6dee5dfe02'; - public const GROUP_3 = 'c3c99512-f29d-46d0-8d3f-37e89d6a079c'; - public const DATA_1 = 'f7a4fff8-8e81-4eb5-8623-ae3d1a159642'; - public const DATA_2 = '5aeaa647-39ef-419a-9c04-d12fd489f1c0'; - public const DATA_3 = '23f86352-4382-4fbd-bc6b-848fa3eadae0'; + private const string GROUP_1 = '56dbdf19-8669-43a5-b332-3845e52e9cae'; + private const string GROUP_2 = '2f72bf0b-c6f2-45a9-9769-2c6dee5dfe02'; + private const string GROUP_3 = 'c3c99512-f29d-46d0-8d3f-37e89d6a079c'; + private const string DATA_1 = 'f7a4fff8-8e81-4eb5-8623-ae3d1a159642'; + private const string DATA_2 = '5aeaa647-39ef-419a-9c04-d12fd489f1c0'; + private const string DATA_3 = '23f86352-4382-4fbd-bc6b-848fa3eadae0'; public function testGetIndex(): void { diff --git a/tests/FeatureTests/Security/_99_05_TokenHasNoOwnerTest.php b/tests/FeatureTests/Security/_99_05_TokenHasNoOwnerTest.php index 1bef0f92..0cd5c6a5 100644 --- a/tests/FeatureTests/Security/_99_05_TokenHasNoOwnerTest.php +++ b/tests/FeatureTests/Security/_99_05_TokenHasNoOwnerTest.php @@ -6,10 +6,10 @@ class _99_05_TokenHasNoOwnerTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:D44551NKEtvd9KgHXTPd32'; + private const string TOKEN = 'secret-token:D44551NKEtvd9KgHXTPd32'; - public const DATA = 'ebc364c6-ba06-4e80-9491-9bcc091199c6'; - public const TOKEN_UUID = 'adc8ae1e-d86c-4fe4-8a12-1fb7c485d360'; + private const string DATA = 'ebc364c6-ba06-4e80-9491-9bcc091199c6'; + private const string TOKEN_UUID = 'adc8ae1e-d86c-4fe4-8a12-1fb7c485d360'; public function testGetDataFails(): void { diff --git a/tests/FeatureTests/Security/_99_06_TokenHasTwoOwnersTest.php b/tests/FeatureTests/Security/_99_06_TokenHasTwoOwnersTest.php index 27c821ee..c4f0e14c 100644 --- a/tests/FeatureTests/Security/_99_06_TokenHasTwoOwnersTest.php +++ b/tests/FeatureTests/Security/_99_06_TokenHasTwoOwnersTest.php @@ -6,12 +6,12 @@ class _99_06_TokenHasTwoOwnersTest extends BaseRequestTestCase { - public const TOKEN = 'secret-token:Fqd0dnLYhXdPSMvMi3c8Bp'; + private const string TOKEN = 'secret-token:Fqd0dnLYhXdPSMvMi3c8Bp'; - public const DATA = 'd69f2e6c-ce6a-4915-a567-acf0c1fc4432'; - public const TOKEN_UUID = 'bbf1baf9-c665-4470-9a1d-47483da18bf3'; - public const USER_1 = '3b9bd45a-a363-434f-8956-2877857c7456'; - public const USER_2 = '9827facc-40b0-40ca-a7a5-ff947e1c4b86'; + private const string DATA = 'd69f2e6c-ce6a-4915-a567-acf0c1fc4432'; + private const string TOKEN_UUID = 'bbf1baf9-c665-4470-9a1d-47483da18bf3'; + private const string USER_1 = '3b9bd45a-a363-434f-8956-2877857c7456'; + private const string USER_2 = '9827facc-40b0-40ca-a7a5-ff947e1c4b86'; public function testGetDataFails(): void {