/** * Tests the \Joomla\Database\DatabaseQuery::union method. * * @return void * * @covers \Joomla\Database\DatabaseQuery::union * @since 1.0 */ public function testUnionClear() { TestHelper::setValue($this->instance, 'union', null); TestHelper::setValue($this->instance, 'order', null); $this->instance->order('bar'); $this->instance->union('SELECT name FROM foo'); $this->assertThat(TestHelper::getValue($this->instance, 'order'), $this->equalTo(null), 'Tests that ORDER BY is cleared with union.'); }