File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
tests/php-unit-tests/unitary-tests/core Expand file tree Collapse file tree 2 files changed +10
-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 @@ -694,6 +694,15 @@ public function testAllowAllData()
694694 $ this ->CheckNestedSearch ($ sNestedQuery , false );
695695 }
696696
697+ public function testAllowAllDataOnUnions ()
698+ {
699+ $ oSearch = \DBObjectSearch::FromOQL ('SELECT Server UNION SELECT VirtualMachine ' );
700+ $ oSearch ->AllowAllData (false );
701+ self ::assertFalse ($ oSearch ->IsAllDataAllowed (), 'DBUnionSearch AllowData value ' );
702+ $ oSearch ->AllowAllData (true );
703+ self ::assertTrue ($ oSearch ->IsAllDataAllowed (), 'DBUnionSearch AllowData value ' );
704+ }
705+
697706 private function CheckNestedSearch ($ sQuery , $ bAllowAllData )
698707 {
699708 $ oNestedQuerySearch = \DBObjectSearch::FromOQL ($ sQuery );
You can’t perform that action at this time.
0 commit comments