/** * Test for RIGHT JOIN clause. * * @return void * * @since 11.3 */ public function testRightJoin() { $q = new JDatabaseQueryPostgresql($this->dbo); $q2 = new JDatabaseQueryPostgresql($this->dbo); $condition = 'foo ON foo.id = bar.id'; $this->assertSame($q, $q->rightJoin($condition)); $q2->join('RIGHT', $condition); $this->assertEquals($q2->join, $q->join); }
/** * Test for RIGHT JOIN clause. * * @return void * * @since 11.3 */ public function testRightJoin() { $q = new JDatabaseQueryPostgresql($this->dbo); $q2 = new JDatabaseQueryPostgresql($this->dbo); $condition = 'foo ON foo.id = bar.id'; $this->assertThat($q->rightJoin($condition), $this->identicalTo($q), 'Tests chaining.'); $q2->join('RIGHT', $condition); $this->assertThat($q->join, $this->equalTo($q2->join), 'Tests that innerJoin is an alias for join.'); }