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