/**
  * Tests the JDatabaseQuery::unionDistinct method.
  *
  * @return  void
  *
  * @since   12.1
  */
 public function testUnionDistinctArray()
 {
     TestReflection::setValue($this->_instance, 'union', null);
     $this->_instance->unionDistinct(array('SELECT name FROM foo', 'SELECT name FROM bar'));
     $teststring = (string) TestReflection::getValue($this->_instance, 'union');
     $this->assertThat($teststring, $this->equalTo(PHP_EOL . "UNION DISTINCT (SELECT name FROM foo)" . PHP_EOL . "UNION DISTINCT (SELECT name FROM bar)"), 'Tests rendered query with two unions distinct.');
 }