@@ -87,7 +87,7 @@ public function testGetUsedConfig() {
8787 // Set configuration for the 2 sub entities
8888 $ instance = $ this ->newTestedInstance ();
8989 $ instance ->add ([
90- 'id ' => $ entityId ,
90+ 'entities_id ' => $ entityId ,
9191 'replace_helpdesk ' => \PluginFormcreatorEntityconfig::CONFIG_EXTENDED_SERVICE_CATALOG ,
9292 'is_kb_separated ' => \PluginFormcreatorEntityconfig::CONFIG_KB_MERGED ,
9393 'sort_order ' => \PluginFormcreatorEntityconfig::CONFIG_SORT_ALPHABETICAL ,
@@ -96,7 +96,7 @@ public function testGetUsedConfig() {
9696
9797 $ instance = $ this ->newTestedInstance ();
9898 $ instance ->add ([
99- 'id ' => $ entityId1 ,
99+ 'entities_id ' => $ entityId1 ,
100100 'replace_helpdesk ' => \PluginFormcreatorEntityconfig::CONFIG_SIMPLIFIED_SERVICE_CATALOG ,
101101 'is_kb_separated ' => \PluginFormcreatorEntityconfig::CONFIG_KB_MERGED ,
102102 'sort_order ' => \PluginFormcreatorEntityconfig::CONFIG_SORT_ALPHABETICAL ,
@@ -105,7 +105,7 @@ public function testGetUsedConfig() {
105105
106106 $ instance = $ this ->newTestedInstance ();
107107 $ instance ->add ([
108- 'id ' => $ entityId2 ,
108+ 'entities_id ' => $ entityId2 ,
109109 'replace_helpdesk ' => \PluginFormcreatorEntityconfig::CONFIG_EXTENDED_SERVICE_CATALOG ,
110110 'is_kb_separated ' => \PluginFormcreatorEntityconfig::CONFIG_KB_DISTINCT ,
111111 'sort_order ' => \PluginFormcreatorEntityconfig::CONFIG_SORT_POPULARITY ,
@@ -114,7 +114,7 @@ public function testGetUsedConfig() {
114114
115115 $ instance = $ this ->newTestedInstance ();
116116 $ instance ->add ([
117- 'id ' => $ entityId3 ,
117+ 'entities_id ' => $ entityId3 ,
118118 'replace_helpdesk ' => \PluginFormcreatorEntityconfig::CONFIG_PARENT ,
119119 'is_kb_separated ' => \PluginFormcreatorEntityconfig::CONFIG_PARENT ,
120120 'sort_order ' => \PluginFormcreatorEntityconfig::CONFIG_PARENT ,
@@ -145,8 +145,9 @@ public function testGetUsedConfig() {
145145
146146 // Check change on parent entity propagates to child with inherited settings
147147 $ instance = $ this ->newTestedInstance ();
148+ $ instance ->getFromDBByCrit (['entities_id ' => $ entityId ]);
148149 $ instance ->update ([
149- 'id ' => $ entityId ,
150+ 'id ' => $ instance -> getID () ,
150151 'replace_helpdesk ' => \PluginFormcreatorEntityconfig::CONFIG_SIMPLIFIED_SERVICE_CATALOG ,
151152 'is_kb_separated ' => \PluginFormcreatorEntityconfig::CONFIG_KB_DISTINCT ,
152153 'sort_order ' => \PluginFormcreatorEntityconfig::CONFIG_SORT_POPULARITY ,
0 commit comments