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