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