File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
tests/php-unit-tests/unitary-tests/core Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function __construct($aSearches)
5959 public function AllowAllData ($ bAllowAllData = true )
6060 {
6161 foreach ($ this ->aSearches as $ oSearch ) {
62- $ oSearch ->AllowAllData ();
62+ $ oSearch ->AllowAllData ($ bAllowAllData );
6363 }
6464 }
6565
Original file line number Diff line number Diff line change @@ -183,4 +183,14 @@ public function SetSelectedClassesProvider()
183183 ],
184184 ];
185185 }
186+
187+ public function testAllowAllDataOnUnions ()
188+ {
189+ $ oSearch = \DBObjectSearch::FromOQL ('SELECT Server UNION SELECT VirtualMachine ' );
190+ $ oSearch ->AllowAllData (false );
191+ self ::assertFalse ($ oSearch ->IsAllDataAllowed (), 'DBUnionSearch AllowData value ' );
192+ $ oSearch ->AllowAllData (true );
193+ self ::assertTrue ($ oSearch ->IsAllDataAllowed (), 'DBUnionSearch AllowData value ' );
194+ }
195+
186196}
You can’t perform that action at this time.
0 commit comments