2626 */
2727class ObjectStateServiceTest extends BaseTestCase
2828{
29- private const EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'ez_lock ' ;
29+ private const EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'ibexa_lock ' ;
3030 private const EXISTING_OBJECT_STATE_IDENTIFIER = 'locked ' ;
3131
3232 private const NON_EXISTING_OBJECT_STATE_GROUP_IDENTIFIER = 'non-existing ' ;
@@ -299,8 +299,8 @@ public function testCreateObjectStateGroupThrowsInvalidArgumentException()
299299 $ objectStateService = $ repository ->getObjectStateService ();
300300
301301 $ objectStateGroupCreate = $ objectStateService ->newObjectStateGroupCreateStruct (
302- // 'ez_lock ' is already existing identifier
303- 'ez_lock '
302+ // 'ibexa_lock ' is already existing identifier
303+ 'ibexa_lock '
304304 );
305305 $ objectStateGroupCreate ->defaultLanguageCode = 'eng-US ' ;
306306 $ objectStateGroupCreate ->names = [
@@ -312,7 +312,7 @@ public function testCreateObjectStateGroupThrowsInvalidArgumentException()
312312 'eng-GB ' => 'Put something ton Sindelfingen. ' ,
313313 ];
314314
315- // This call will fail because group with 'ez_lock ' identifier already exists
315+ // This call will fail because group with 'ibexa_lock ' identifier already exists
316316 $ objectStateService ->createObjectStateGroup (
317317 $ objectStateGroupCreate
318318 );
@@ -330,7 +330,7 @@ public function testLoadObjectStateGroup()
330330 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
331331 /* BEGIN: Use Case */
332332 // $objectStateGroupId contains the ID of the standard object state
333- // group ez_lock .
333+ // group ibexa_lock .
334334 $ objectStateService = $ repository ->getObjectStateService ();
335335
336336 $ loadedObjectStateGroup = $ objectStateService ->loadObjectStateGroup (
@@ -346,7 +346,7 @@ public function testLoadObjectStateGroup()
346346 $ this ->assertPropertiesCorrect (
347347 [
348348 'id ' => 2 ,
349- 'identifier ' => 'ez_lock ' ,
349+ 'identifier ' => 'ibexa_lock ' ,
350350 'mainLanguageCode ' => 'eng-US ' ,
351351 'languageCodes ' => ['eng-US ' ],
352352 'names ' => ['eng-US ' => 'Lock ' ],
@@ -404,7 +404,7 @@ public function testLoadObjectStateGroupByIdentifier(): void
404404 $ this ->assertPropertiesCorrect (
405405 [
406406 'id ' => 2 ,
407- 'identifier ' => 'ez_lock ' ,
407+ 'identifier ' => 'ibexa_lock ' ,
408408 'mainLanguageCode ' => 'eng-US ' ,
409409 'languageCodes ' => ['eng-US ' ],
410410 'names ' => ['eng-US ' => 'Lock ' ],
@@ -447,7 +447,7 @@ public function testLoadObjectStateGroups()
447447 $ repository = $ this ->getRepository ();
448448
449449 $ expectedGroupIdentifiers = $ this ->getGroupIdentifierMap ($ this ->createObjectStateGroups ());
450- $ expectedGroupIdentifiers ['ez_lock ' ] = true ;
450+ $ expectedGroupIdentifiers ['ibexa_lock ' ] = true ;
451451
452452 /* BEGIN: Use Case */
453453 $ objectStateService = $ repository ->getObjectStateService ();
@@ -636,7 +636,7 @@ public function testLoadObjectStates()
636636 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
637637 /* BEGIN: Use Case */
638638 // $objectStateGroupId contains the ID of the standard object state
639- // group ez_lock .
639+ // group ibexa_lock .
640640 $ objectStateService = $ repository ->getObjectStateService ();
641641
642642 $ objectStateGroup = $ objectStateService ->loadObjectStateGroup (
@@ -671,7 +671,7 @@ public function testUpdateObjectStateGroup()
671671 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
672672 /* BEGIN: Use Case */
673673 // $objectStateGroupId contains the ID of the standard object state
674- // group ez_lock .
674+ // group ibexa_lock .
675675 $ objectStateService = $ repository ->getObjectStateService ();
676676
677677 $ loadedObjectStateGroup = $ objectStateService ->loadObjectStateGroup (
@@ -742,7 +742,7 @@ public function testUpdateObjectStateGroupChosenFieldsOnly()
742742 $ this ->assertPropertiesCorrect (
743743 [
744744 'id ' => 2 ,
745- 'identifier ' => 'ez_lock ' ,
745+ 'identifier ' => 'ibexa_lock ' ,
746746 'mainLanguageCode ' => 'eng-GB ' ,
747747 'languageCodes ' => ['eng-GB ' ],
748748 'names ' => ['eng-GB ' => 'Test ' ],
@@ -790,8 +790,8 @@ public function testUpdateObjectStateGroupThrowsInvalidArgumentException()
790790 );
791791
792792 $ groupUpdateStruct = $ objectStateService ->newObjectStateGroupUpdateStruct ();
793- // 'ez_lock ' is the identifier of already existing group
794- $ groupUpdateStruct ->identifier = 'ez_lock ' ;
793+ // 'ibexa_lock ' is the identifier of already existing group
794+ $ groupUpdateStruct ->identifier = 'ibexa_lock ' ;
795795 $ groupUpdateStruct ->defaultLanguageCode = 'ger-DE ' ;
796796 $ groupUpdateStruct ->names = [
797797 'ger-DE ' => 'Sindelfingen ' ,
@@ -800,7 +800,7 @@ public function testUpdateObjectStateGroupThrowsInvalidArgumentException()
800800 'ger-DE ' => 'Sindelfingen ist nicht nur eine Stadt ' ,
801801 ];
802802
803- // This call will fail since state group with 'ez_lock ' identifier already exists
803+ // This call will fail since state group with 'ibexa_lock ' identifier already exists
804804 $ objectStateService ->updateObjectStateGroup (
805805 $ createdObjectStateGroup ,
806806 $ groupUpdateStruct
@@ -848,7 +848,7 @@ public function testCreateObjectState()
848848 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
849849 /* BEGIN: Use Case */
850850 // $objectStateGroupId contains the ID of the standard object state
851- // group ez_lock .
851+ // group ibexa_lock .
852852 $ objectStateService = $ repository ->getObjectStateService ();
853853
854854 $ loadedObjectStateGroup = $ objectStateService ->loadObjectStateGroup (
@@ -962,7 +962,7 @@ public function testCreateObjectStateThrowsInvalidArgumentException()
962962
963963 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
964964 // $objectStateGroupId contains the ID of the standard object state
965- // group ez_lock .
965+ // group ibexa_lock .
966966 $ objectStateService = $ repository ->getObjectStateService ();
967967
968968 $ loadedObjectStateGroup = $ objectStateService ->loadObjectStateGroup (
@@ -1605,7 +1605,7 @@ public function testGetContentState()
16051605 $ ezLockObjectStateGroupId
16061606 );
16071607
1608- // Loads the state of $contentInfo in the "ez_lock " object state group
1608+ // Loads the state of $contentInfo in the "ibexa_lock " object state group
16091609 $ ezLockObjectState = $ objectStateService ->getContentState (
16101610 $ contentInfo ,
16111611 $ ezLockObjectStateGroup
@@ -1703,7 +1703,7 @@ public function testSetContentState()
17031703 $ lockedObjectStateId = $ this ->generateId ('objectstate ' , 2 );
17041704 /* BEGIN: Use Case */
17051705 // $anonymousUserId is the content ID of "Anonymous User"
1706- // $ezLockObjectStateGroupId contains the ID of the "ez_lock " object
1706+ // $ezLockObjectStateGroupId contains the ID of the "ibexa_lock " object
17071707 // state group
17081708 // $lockedObjectStateId is the ID of the state "locked"
17091709 $ contentService = $ repository ->getContentService ();
@@ -1850,7 +1850,7 @@ public function testDeleteObjectStateGroup()
18501850 $ objectStateGroupId = $ this ->generateId ('objectstategroup ' , 2 );
18511851 /* BEGIN: Use Case */
18521852 // $objectStateGroupId contains the ID of the standard object state
1853- // group ez_lock .
1853+ // group ibexa_lock .
18541854 $ objectStateService = $ repository ->getObjectStateService ();
18551855
18561856 $ loadedObjectStateGroup = $ objectStateService ->loadObjectStateGroup (
0 commit comments