File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
tests/e2e/Adapter/Scopes/Relationships Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -1057,31 +1057,6 @@ public function testIdenticalTwoWayKeyRelationship(): void
10571057 }
10581058 }
10591059
1060- $ database ->createDocument ('parent ' , new Document ([
1061- '$permissions ' => [
1062- Permission::read (Role::any ()),
1063- Permission::update (Role::any ()),
1064- Permission::delete (Role::any ()),
1065- ],
1066- 'child1 ' => [
1067- '$id ' => 'foo ' ,
1068- '$permissions ' => [Permission::read (Role::any ())],
1069- ],
1070- 'children ' => [
1071- [
1072- '$id ' => 'bar ' ,
1073- '$permissions ' => [Permission::read (Role::any ())],
1074- ],
1075- ],
1076- ]));
1077-
1078- $ documents = $ database ->find ('parent ' , []);
1079- $ document = array_pop ($ documents );
1080- $ this ->assertArrayHasKey ('child1 ' , $ document );
1081- $ this ->assertEquals ('foo ' , $ document ->getAttribute ('child1 ' )->getId ());
1082- $ this ->assertArrayHasKey ('children ' , $ document );
1083- $ this ->assertEquals ('bar ' , $ document ->getAttribute ('children ' )[0 ]->getId ());
1084-
10851060 try {
10861061 $ database ->updateRelationship (
10871062 collection: 'parent ' ,
You can’t perform that action at this time.
0 commit comments