/**
  * Tests the JDatabaseQuery::unionDistinct method.
  *
  * @return  void
  *
  * @since   12.1
  */
 public function testUnionDistinctArray()
 {
     $q = new JDatabaseQueryInspector($this->dbo);
     $q->union = null;
     $q->unionDistinct(array('SELECT name FROM foo', 'SELECT name FROM bar'));
     $teststring = (string) $q->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.');
 }