@@ -1052,27 +1052,27 @@ public function testIdenticalTwoWayKeyRelationship(): void
10521052 return ;
10531053 }
10541054
1055- $ database ->createCollection ('parent ' );
1056- $ database ->createCollection ('child ' );
1055+ $ database ->createCollection ('identical- parent ' );
1056+ $ database ->createCollection ('identical- child ' );
10571057
10581058 $ database ->createRelationship (
1059- collection: 'parent ' ,
1060- relatedCollection: 'child ' ,
1059+ collection: 'identical- parent ' ,
1060+ relatedCollection: 'identical- child ' ,
10611061 type: Database::RELATION_ONE_TO_ONE ,
10621062 id: 'child1 '
10631063 );
10641064
10651065 $ result = $ database ->createRelationship (
1066- collection: 'parent ' ,
1067- relatedCollection: 'child ' ,
1066+ collection: 'identical- parent ' ,
1067+ relatedCollection: 'identical- child ' ,
10681068 type: Database::RELATION_ONE_TO_MANY ,
10691069 id: 'children ' ,
10701070 );
10711071 $ this ->assertTrue ($ result );
10721072
10731073 $ result = $ database ->createRelationship (
1074- collection: 'parent ' ,
1075- relatedCollection: 'child ' ,
1074+ collection: 'identical- parent ' ,
1075+ relatedCollection: 'identical- child ' ,
10761076 type: Database::RELATION_ONE_TO_MANY ,
10771077 id: 'childrenById ' ,
10781078 twoWayKey: 'parent_id '
@@ -1081,8 +1081,8 @@ public function testIdenticalTwoWayKeyRelationship(): void
10811081
10821082 try {
10831083 $ database ->createRelationship (
1084- collection: 'parent ' ,
1085- relatedCollection: 'child ' ,
1084+ collection: 'identical- parent ' ,
1085+ relatedCollection: 'identical- child ' ,
10861086 type: Database::RELATION_ONE_TO_MANY ,
10871087 twoWay: true ,
10881088 id: 'twoWayChildren ' ,
@@ -1093,7 +1093,7 @@ public function testIdenticalTwoWayKeyRelationship(): void
10931093 $ this ->assertEquals ('Related attribute already exists ' , $ e ->getMessage ());
10941094 }
10951095
1096- $ collection = $ database ->getCollection ('parent ' );
1096+ $ collection = $ database ->getCollection ('identical- parent ' );
10971097 $ attributes = $ collection ->getAttribute ('attributes ' , []);
10981098 foreach ($ attributes as $ attribute ) {
10991099 if ($ attribute ['key ' ] === 'child1 ' ) {
@@ -1111,7 +1111,7 @@ public function testIdenticalTwoWayKeyRelationship(): void
11111111
11121112 try {
11131113 $ database ->updateRelationship (
1114- collection: 'parent ' ,
1114+ collection: 'identical- parent ' ,
11151115 id: 'children ' ,
11161116 newKey: 'child1 '
11171117 );
@@ -1122,7 +1122,7 @@ public function testIdenticalTwoWayKeyRelationship(): void
11221122
11231123 try {
11241124 $ database ->updateRelationship (
1125- collection: 'parent ' ,
1125+ collection: 'identical- parent ' ,
11261126 id: 'children ' ,
11271127 newTwoWayKey: 'parent '
11281128 );
0 commit comments