From ccac375f30f9c2a876addb73b313ac9cd62f7224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Fri, 11 Jul 2025 07:52:41 +0200 Subject: [PATCH] IBX-10254: Renamed ez_lock object state group to ibexa_lock --- data/mysql/cleandata.sql | 2 +- data/postgresql/cleandata.sql | 2 +- .../BaseRepositoryFilteringTestCase.php | 4 +- .../ObjectStateServiceAuthorizationTest.php | 8 ++-- .../Repository/ObjectStateServiceTest.php | 38 +++++++++---------- .../ObjectStateTermAggregationTest.php | 4 +- .../Core/Repository/SearchServiceTest.php | 2 +- .../_fixtures/Legacy/data/test_data.yaml | 2 +- .../Gateway/DoctrineDatabaseTest.php | 8 ++-- .../Legacy/Content/ObjectState/MapperTest.php | 6 +-- .../ObjectState/ObjectStateHandlerTest.php | 4 +- .../Legacy/Content/_fixtures/objectstates.php | 2 +- .../User/Role/LimitationConverterTest.php | 14 +++---- .../ObjectStateServiceDecoratorTest.php | 2 +- .../ObjectStateServiceTest.php | 2 +- .../lib/Search/Legacy/_fixtures/full_dump.php | 2 +- 16 files changed, 51 insertions(+), 51 deletions(-) diff --git a/data/mysql/cleandata.sql b/data/mysql/cleandata.sql index 6f1b182d9c..73931cf8f8 100644 --- a/data/mysql/cleandata.sql +++ b/data/mysql/cleandata.sql @@ -3,7 +3,7 @@ VALUES (2, 2, 1, 'not_locked', 3, 0), (2, 2, 2, 'locked', 3, 1); INSERT INTO `ibexa_object_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3); +VALUES (2,2,'ibexa_lock',3); INSERT INTO `ibexa_object_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) VALUES (2,'',3,'Lock',2); diff --git a/data/postgresql/cleandata.sql b/data/postgresql/cleandata.sql index bbbf5fcce7..a3eb0ef1e6 100644 --- a/data/postgresql/cleandata.sql +++ b/data/postgresql/cleandata.sql @@ -3,7 +3,7 @@ VALUES (2, 2, 1, 'not_locked', 3, 0), (2, 2, 2, 'locked', 3, 1); INSERT INTO "ibexa_object_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, 'ez_lock', 3); +VALUES (2, 2, 'ibexa_lock', 3); INSERT INTO "ibexa_object_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") VALUES (2, '', 3, 'Lock', 2); diff --git a/tests/integration/Core/Repository/Filtering/BaseRepositoryFilteringTestCase.php b/tests/integration/Core/Repository/Filtering/BaseRepositoryFilteringTestCase.php index 286ed5dfdc..bbf83d43e2 100644 --- a/tests/integration/Core/Repository/Filtering/BaseRepositoryFilteringTestCase.php +++ b/tests/integration/Core/Repository/Filtering/BaseRepositoryFilteringTestCase.php @@ -255,9 +255,9 @@ public function getCriteriaForInitialData(): iterable yield 'ObjectStateIdentifier=not_locked' => new Criterion\ObjectStateIdentifier( 'not_locked' ); - yield 'ObjectStateIdentifier=ez_lock(not_locked)' => new Criterion\ObjectStateIdentifier( + yield 'ObjectStateIdentifier=ibexa_lock(not_locked)' => new Criterion\ObjectStateIdentifier( ['not_locked'], - 'ez_lock' + 'ibexa_lock' ); yield 'ParentLocationId=1' => new Criterion\ParentLocationId(1); yield 'RemoteId=8a9c9c761004866fb458d89910f52bee' => new Criterion\RemoteId( diff --git a/tests/integration/Core/Repository/ObjectStateServiceAuthorizationTest.php b/tests/integration/Core/Repository/ObjectStateServiceAuthorizationTest.php index e51a7fad02..e92a5a5465 100644 --- a/tests/integration/Core/Repository/ObjectStateServiceAuthorizationTest.php +++ b/tests/integration/Core/Repository/ObjectStateServiceAuthorizationTest.php @@ -88,7 +88,7 @@ public function testUpdateObjectStateGroupThrowsUnauthorizedException() $permissionResolver->setCurrentUserReference($userService->loadUser($anonymousUserId)); // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -138,7 +138,7 @@ public function testDeleteObjectStateGroupThrowsUnauthorizedException() $permissionResolver->setCurrentUserReference($userService->loadUser($anonymousUserId)); // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -175,7 +175,7 @@ public function testCreateObjectStateThrowsUnauthorizedException() $permissionResolver->setCurrentUserReference($userService->loadUser($anonymousUserId)); // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -353,7 +353,7 @@ public function testSetContentStateThrowsUnauthorizedException() $permissionResolver->setCurrentUserReference($userService->loadUser($anonymousUserId)); // $anonymousUserId is the content ID of "Anonymous User" - // $ezLockObjectStateGroupId contains the ID of the "ez_lock" object + // $ezLockObjectStateGroupId contains the ID of the "ibexa_lock" object // state group // $lockedObjectStateId is the ID of the state "locked" $contentService = $repository->getContentService(); diff --git a/tests/integration/Core/Repository/ObjectStateServiceTest.php b/tests/integration/Core/Repository/ObjectStateServiceTest.php index e1fdfe3284..ed3896e4f3 100644 --- a/tests/integration/Core/Repository/ObjectStateServiceTest.php +++ b/tests/integration/Core/Repository/ObjectStateServiceTest.php @@ -26,7 +26,7 @@ */ class ObjectStateServiceTest extends BaseTestCase { - private const EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'ez_lock'; + private const EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'ibexa_lock'; private const EXISTING_OBJECT_STATE_IDENTIFIER = 'locked'; private const NON_EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'non-existing'; @@ -299,8 +299,8 @@ public function testCreateObjectStateGroupThrowsInvalidArgumentException() $objectStateService = $repository->getObjectStateService(); $objectStateGroupCreate = $objectStateService->newObjectStateGroupCreateStruct( - // 'ez_lock' is already existing identifier - 'ez_lock' + // 'ibexa_lock' is already existing identifier + 'ibexa_lock' ); $objectStateGroupCreate->defaultLanguageCode = 'eng-US'; $objectStateGroupCreate->names = [ @@ -312,7 +312,7 @@ public function testCreateObjectStateGroupThrowsInvalidArgumentException() 'eng-GB' => 'Put something ton Sindelfingen.', ]; - // This call will fail because group with 'ez_lock' identifier already exists + // This call will fail because group with 'ibexa_lock' identifier already exists $objectStateService->createObjectStateGroup( $objectStateGroupCreate ); @@ -330,7 +330,7 @@ public function testLoadObjectStateGroup() $objectStateGroupId = $this->generateId('objectstategroup', 2); /* BEGIN: Use Case */ // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -346,7 +346,7 @@ public function testLoadObjectStateGroup() $this->assertPropertiesCorrect( [ 'id' => 2, - 'identifier' => 'ez_lock', + 'identifier' => 'ibexa_lock', 'mainLanguageCode' => 'eng-US', 'languageCodes' => ['eng-US'], 'names' => ['eng-US' => 'Lock'], @@ -404,7 +404,7 @@ public function testLoadObjectStateGroupByIdentifier(): void $this->assertPropertiesCorrect( [ 'id' => 2, - 'identifier' => 'ez_lock', + 'identifier' => 'ibexa_lock', 'mainLanguageCode' => 'eng-US', 'languageCodes' => ['eng-US'], 'names' => ['eng-US' => 'Lock'], @@ -447,7 +447,7 @@ public function testLoadObjectStateGroups() $repository = $this->getRepository(); $expectedGroupIdentifiers = $this->getGroupIdentifierMap($this->createObjectStateGroups()); - $expectedGroupIdentifiers['ez_lock'] = true; + $expectedGroupIdentifiers['ibexa_lock'] = true; /* BEGIN: Use Case */ $objectStateService = $repository->getObjectStateService(); @@ -636,7 +636,7 @@ public function testLoadObjectStates() $objectStateGroupId = $this->generateId('objectstategroup', 2); /* BEGIN: Use Case */ // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $objectStateGroup = $objectStateService->loadObjectStateGroup( @@ -671,7 +671,7 @@ public function testUpdateObjectStateGroup() $objectStateGroupId = $this->generateId('objectstategroup', 2); /* BEGIN: Use Case */ // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -742,7 +742,7 @@ public function testUpdateObjectStateGroupChosenFieldsOnly() $this->assertPropertiesCorrect( [ 'id' => 2, - 'identifier' => 'ez_lock', + 'identifier' => 'ibexa_lock', 'mainLanguageCode' => 'eng-GB', 'languageCodes' => ['eng-GB'], 'names' => ['eng-GB' => 'Test'], @@ -790,8 +790,8 @@ public function testUpdateObjectStateGroupThrowsInvalidArgumentException() ); $groupUpdateStruct = $objectStateService->newObjectStateGroupUpdateStruct(); - // 'ez_lock' is the identifier of already existing group - $groupUpdateStruct->identifier = 'ez_lock'; + // 'ibexa_lock' is the identifier of already existing group + $groupUpdateStruct->identifier = 'ibexa_lock'; $groupUpdateStruct->defaultLanguageCode = 'ger-DE'; $groupUpdateStruct->names = [ 'ger-DE' => 'Sindelfingen', @@ -800,7 +800,7 @@ public function testUpdateObjectStateGroupThrowsInvalidArgumentException() 'ger-DE' => 'Sindelfingen ist nicht nur eine Stadt', ]; - // This call will fail since state group with 'ez_lock' identifier already exists + // This call will fail since state group with 'ibexa_lock' identifier already exists $objectStateService->updateObjectStateGroup( $createdObjectStateGroup, $groupUpdateStruct @@ -848,7 +848,7 @@ public function testCreateObjectState() $objectStateGroupId = $this->generateId('objectstategroup', 2); /* BEGIN: Use Case */ // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -962,7 +962,7 @@ public function testCreateObjectStateThrowsInvalidArgumentException() $objectStateGroupId = $this->generateId('objectstategroup', 2); // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( @@ -1605,7 +1605,7 @@ public function testGetContentState() $ezLockObjectStateGroupId ); - // Loads the state of $contentInfo in the "ez_lock" object state group + // Loads the state of $contentInfo in the "ibexa_lock" object state group $ezLockObjectState = $objectStateService->getContentState( $contentInfo, $ezLockObjectStateGroup @@ -1703,7 +1703,7 @@ public function testSetContentState() $lockedObjectStateId = $this->generateId('objectstate', 2); /* BEGIN: Use Case */ // $anonymousUserId is the content ID of "Anonymous User" - // $ezLockObjectStateGroupId contains the ID of the "ez_lock" object + // $ezLockObjectStateGroupId contains the ID of the "ibexa_lock" object // state group // $lockedObjectStateId is the ID of the state "locked" $contentService = $repository->getContentService(); @@ -1850,7 +1850,7 @@ public function testDeleteObjectStateGroup() $objectStateGroupId = $this->generateId('objectstategroup', 2); /* BEGIN: Use Case */ // $objectStateGroupId contains the ID of the standard object state - // group ez_lock. + // group ibexa_lock. $objectStateService = $repository->getObjectStateService(); $loadedObjectStateGroup = $objectStateService->loadObjectStateGroup( diff --git a/tests/integration/Core/Repository/SearchService/Aggregation/ObjectStateTermAggregationTest.php b/tests/integration/Core/Repository/SearchService/Aggregation/ObjectStateTermAggregationTest.php index 3894116de4..2fe16a5d38 100644 --- a/tests/integration/Core/Repository/SearchService/Aggregation/ObjectStateTermAggregationTest.php +++ b/tests/integration/Core/Repository/SearchService/Aggregation/ObjectStateTermAggregationTest.php @@ -16,7 +16,7 @@ final class ObjectStateTermAggregationTest extends AbstractAggregationTestCase { public function dataProviderForTestFindContentWithAggregation(): iterable { - $aggregation = new ObjectStateTermAggregation('object_state', 'ez_lock'); + $aggregation = new ObjectStateTermAggregation('object_state', 'ibexa_lock'); $builder = new TermAggregationDataSetBuilder($aggregation); $builder->setExpectedEntries([ @@ -30,7 +30,7 @@ function (string $identifier): ObjectState { static $objectStateGroup = null; if ($objectStateGroup === null) { - $objectStateGroup = $objectStateService->loadObjectStateGroupByIdentifier('ez_lock'); + $objectStateGroup = $objectStateService->loadObjectStateGroupByIdentifier('ibexa_lock'); } return $objectStateService->loadObjectStateByIdentifier($objectStateGroup, $identifier); diff --git a/tests/integration/Core/Repository/SearchServiceTest.php b/tests/integration/Core/Repository/SearchServiceTest.php index 94de53e805..964c8eafa3 100644 --- a/tests/integration/Core/Repository/SearchServiceTest.php +++ b/tests/integration/Core/Repository/SearchServiceTest.php @@ -827,7 +827,7 @@ public function getContentQuerySearches() ], [ [ - 'query' => new Criterion\ObjectStateIdentifier(['not_locked'], 'ez_lock'), + 'query' => new Criterion\ObjectStateIdentifier(['not_locked'], 'ibexa_lock'), 'sortClauses' => [new SortClause\ContentId()], 'limit' => 50, ], diff --git a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml index 607544df28..2c80bac8a4 100644 --- a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml +++ b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml @@ -3,7 +3,7 @@ ibexa_object_state: - { default_language_id: 2, group_id: 2, id: 1, identifier: not_locked, language_mask: 3, priority: 0 } - { default_language_id: 2, group_id: 2, id: 2, identifier: locked, language_mask: 3, priority: 1 } ibexa_object_state_group: - - { default_language_id: 2, id: 2, identifier: ez_lock, language_mask: 3 } + - { default_language_id: 2, id: 2, identifier: ibexa_lock, language_mask: 3 } ibexa_object_state_group_language: - { contentobject_state_group_id: 2, description: '', language_id: 3, name: Lock, real_language_id: 2 } ibexa_object_state_language: diff --git a/tests/lib/Persistence/Legacy/Content/ObjectState/Gateway/DoctrineDatabaseTest.php b/tests/lib/Persistence/Legacy/Content/ObjectState/Gateway/DoctrineDatabaseTest.php index 86dd11d9ac..ea196b35e0 100644 --- a/tests/lib/Persistence/Legacy/Content/ObjectState/Gateway/DoctrineDatabaseTest.php +++ b/tests/lib/Persistence/Legacy/Content/ObjectState/Gateway/DoctrineDatabaseTest.php @@ -146,7 +146,7 @@ public function testLoadObjectStateGroupData() [ 'ibexa_object_state_group_default_language_id' => 2, 'ibexa_object_state_group_id' => 2, - 'ibexa_object_state_group_identifier' => 'ez_lock', + 'ibexa_object_state_group_identifier' => 'ibexa_lock', 'ibexa_object_state_group_language_mask' => 3, 'ibexa_object_state_group_language_description' => '', 'ibexa_object_state_group_language_language_id' => 3, @@ -162,14 +162,14 @@ public function testLoadObjectStateGroupDataByIdentifier() { $gateway = $this->getDatabaseGateway(); - $result = $gateway->loadObjectStateGroupDataByIdentifier('ez_lock'); + $result = $gateway->loadObjectStateGroupDataByIdentifier('ibexa_lock'); self::assertEquals( [ [ 'ibexa_object_state_group_default_language_id' => 2, 'ibexa_object_state_group_id' => 2, - 'ibexa_object_state_group_identifier' => 'ez_lock', + 'ibexa_object_state_group_identifier' => 'ibexa_lock', 'ibexa_object_state_group_language_mask' => 3, 'ibexa_object_state_group_language_description' => '', 'ibexa_object_state_group_language_language_id' => 3, @@ -193,7 +193,7 @@ public function testLoadObjectStateGroupListData() [ 'ibexa_object_state_group_default_language_id' => 2, 'ibexa_object_state_group_id' => 2, - 'ibexa_object_state_group_identifier' => 'ez_lock', + 'ibexa_object_state_group_identifier' => 'ibexa_lock', 'ibexa_object_state_group_language_mask' => 3, 'ibexa_object_state_group_language_description' => '', 'ibexa_object_state_group_language_language_id' => 3, diff --git a/tests/lib/Persistence/Legacy/Content/ObjectState/MapperTest.php b/tests/lib/Persistence/Legacy/Content/ObjectState/MapperTest.php index af5d3c9d52..d91c48aecb 100644 --- a/tests/lib/Persistence/Legacy/Content/ObjectState/MapperTest.php +++ b/tests/lib/Persistence/Legacy/Content/ObjectState/MapperTest.php @@ -153,7 +153,7 @@ protected function getObjectStateGroupRowsFixture() [ 'ibexa_object_state_group_default_language_id' => 2, 'ibexa_object_state_group_id' => 1, - 'ibexa_object_state_group_identifier' => 'ez_lock', + 'ibexa_object_state_group_identifier' => 'ibexa_lock', 'ibexa_object_state_group_language_mask' => 3, 'ibexa_object_state_group_language_description' => '', 'ibexa_object_state_group_language_language_id' => 3, @@ -188,7 +188,7 @@ protected function getObjectStateFixture() protected function getObjectStateGroupFixture() { $group = new Group(); - $group->identifier = 'ez_lock'; + $group->identifier = 'ibexa_lock'; $group->defaultLanguage = 'eng-US'; $group->languageCodes = ['eng-US']; $group->name = ['eng-US' => 'Lock']; @@ -224,7 +224,7 @@ protected function getObjectStateGroupInputStructFixture() $inputStruct = new InputStruct(); $inputStruct->defaultLanguage = 'eng-US'; - $inputStruct->identifier = 'ez_lock'; + $inputStruct->identifier = 'ibexa_lock'; $inputStruct->name = ['eng-US' => 'Lock']; $inputStruct->description = ['eng-US' => '']; diff --git a/tests/lib/Persistence/Legacy/Content/ObjectState/ObjectStateHandlerTest.php b/tests/lib/Persistence/Legacy/Content/ObjectState/ObjectStateHandlerTest.php index 00d1423fbb..8d1fc3f9ba 100644 --- a/tests/lib/Persistence/Legacy/Content/ObjectState/ObjectStateHandlerTest.php +++ b/tests/lib/Persistence/Legacy/Content/ObjectState/ObjectStateHandlerTest.php @@ -114,7 +114,7 @@ public function testLoadGroupByIdentifier() $gatewayMock->expects(self::once()) ->method('loadObjectStateGroupDataByIdentifier') - ->with(self::equalTo('ez_lock')) + ->with(self::equalTo('ibexa_lock')) ->will(self::returnValue([[]])); $mapperMock->expects(self::once()) @@ -122,7 +122,7 @@ public function testLoadGroupByIdentifier() ->with(self::equalTo([[]])) ->will(self::returnValue($this->getObjectStateGroupFixture())); - $result = $handler->loadGroupByIdentifier('ez_lock'); + $result = $handler->loadGroupByIdentifier('ibexa_lock'); self::assertInstanceOf( Group::class, diff --git a/tests/lib/Persistence/Legacy/Content/_fixtures/objectstates.php b/tests/lib/Persistence/Legacy/Content/_fixtures/objectstates.php index 2727963dc5..9ada3c0dc6 100644 --- a/tests/lib/Persistence/Legacy/Content/_fixtures/objectstates.php +++ b/tests/lib/Persistence/Legacy/Content/_fixtures/objectstates.php @@ -11,7 +11,7 @@ [ 'default_language_id' => 2, 'id' => 2, - 'identifier' => 'ez_lock', + 'identifier' => 'ibexa_lock', 'language_mask' => 3, ], ], diff --git a/tests/lib/Persistence/Legacy/User/Role/LimitationConverterTest.php b/tests/lib/Persistence/Legacy/User/Role/LimitationConverterTest.php index bfae2fa626..c8ba825884 100644 --- a/tests/lib/Persistence/Legacy/User/Role/LimitationConverterTest.php +++ b/tests/lib/Persistence/Legacy/User/Role/LimitationConverterTest.php @@ -45,7 +45,7 @@ public function testObjectStateToLegacy() $converter->toLegacy($policy); self::assertEquals( [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => '*', + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => '*', ], $policy->limitations, 'Expected State limitation to be transformed into StateGroup_ limitations' @@ -58,7 +58,7 @@ public function testObjectStateToLegacy() $converter->toLegacy($policy); self::assertEquals( [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => [1, 2], + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => [1, 2], ], $policy->limitations, 'Expected State limitation to be transformed into StateGroup_ limitations' @@ -71,7 +71,7 @@ public function testObjectStateToLegacy() $converter->toLegacy($policy); self::assertEquals( [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => [1, 2], + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => [1, 2], ], $policy->limitations, 'Expected State limitation to be transformed into StateGroup_ limitations' @@ -93,7 +93,7 @@ public function testObjectStateToSPI() // #1 Test wildcard $policy->limitations = [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => '*', + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => '*', ]; $converter->toSPI($policy); self::assertEquals( @@ -106,7 +106,7 @@ public function testObjectStateToSPI() // #2 Test valid state values $policy->limitations = [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => [1, 2], + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => [1, 2], ]; $converter->toSPI($policy); self::assertEquals( @@ -119,7 +119,7 @@ public function testObjectStateToSPI() // #3 Test invalid state values (as the values supposedly comes from database they are carried over) $policy->limitations = [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => [1, 2, 3, 4], + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => [1, 2, 3, 4], ]; $converter->toSPI($policy); self::assertEquals( @@ -132,7 +132,7 @@ public function testObjectStateToSPI() // #4 Test invalid state values with mix of wildcard (wildcard values is loaded from db, rest kept as is) $policy->limitations = [ - ObjectStateLimitationHandler::STATE_GROUP . 'ez_lock' => '*', + ObjectStateLimitationHandler::STATE_GROUP . 'ibexa_lock' => '*', ObjectStateLimitationHandler::STATE_GROUP . 'invalid' => [5], ]; $converter->toSPI($policy); diff --git a/tests/lib/Repository/Decorator/ObjectStateServiceDecoratorTest.php b/tests/lib/Repository/Decorator/ObjectStateServiceDecoratorTest.php index 86a3f9abb0..61bd4700bc 100644 --- a/tests/lib/Repository/Decorator/ObjectStateServiceDecoratorTest.php +++ b/tests/lib/Repository/Decorator/ObjectStateServiceDecoratorTest.php @@ -67,7 +67,7 @@ public function testLoadObjectStateGroupByIdentifierDecorator(): void $expectedObjectStateGroup = $this->createMock(ObjectStateGroup::class); $parameters = [ - 'ez_lock', + 'ibexa_lock', ['eng-GB'], ]; diff --git a/tests/lib/Repository/SiteAccessAware/ObjectStateServiceTest.php b/tests/lib/Repository/SiteAccessAware/ObjectStateServiceTest.php index 7fadca9c3d..d564a08dee 100644 --- a/tests/lib/Repository/SiteAccessAware/ObjectStateServiceTest.php +++ b/tests/lib/Repository/SiteAccessAware/ObjectStateServiceTest.php @@ -71,7 +71,7 @@ public function providerForLanguagesLookupMethods() // string $method, array $arguments, mixed $return, int $languageArgumentIndex return [ ['loadObjectStateGroup', [11, self::LANG_ARG], $objectStateGroup, 1], - ['loadObjectStateGroupByIdentifier', ['ez_lock', self::LANG_ARG], $objectStateGroup, 1], + ['loadObjectStateGroupByIdentifier', ['ibexa_lock', self::LANG_ARG], $objectStateGroup, 1], ['loadObjectStateGroups', [50, 50, self::LANG_ARG], [$objectStateGroup], 2], ['loadObjectStates', [$objectStateGroup, self::LANG_ARG], [$objectState], 1], ['loadObjectState', [3, self::LANG_ARG], $objectState, 1], diff --git a/tests/lib/Search/Legacy/_fixtures/full_dump.php b/tests/lib/Search/Legacy/_fixtures/full_dump.php index 0299c678d5..c75f52b168 100644 --- a/tests/lib/Search/Legacy/_fixtures/full_dump.php +++ b/tests/lib/Search/Legacy/_fixtures/full_dump.php @@ -236402,7 +236402,7 @@ 0 => [ 'default_language_id' => '2', 'id' => '2', - 'identifier' => 'ez_lock', + 'identifier' => 'ibexa_lock', 'language_mask' => '3', ], ],