/** * Tests the JDatabaseQuery::outerJoin method. * * @return void * * @since 11.3 */ public function testOuterJoin() { $q1 = new JDatabaseQueryInspector($this->dbo); $q2 = new JDatabaseQueryInspector($this->dbo); $condition = 'foo ON foo.id = bar.id'; $this->assertThat($q1->outerJoin($condition), $this->identicalTo($q1), 'Tests chaining.'); $q2->join('OUTER', $condition); $this->assertThat(TestReflection::getValue($q1, 'join'), $this->equalTo(TestReflection::getValue($q2, 'join')), 'Tests that outerJoin is an alias for join.'); }