Пример #1
0
 /**
  * Test for FROM clause.
  *
  * @return  void
  *
  * @since   1.0
  */
 public function testFrom()
 {
     $q = new PostgresqlQuery($this->dbo);
     $this->assertThat($q->from('#__foo'), $this->identicalTo($q), 'Tests chaining.');
     $this->assertThat(trim($q->from), $this->equalTo('FROM #__foo'), 'Tests rendered value.');
     // Add another column.
     $q->from('#__bar');
     $this->assertThat(trim($q->from), $this->equalTo('FROM #__foo,#__bar'), 'Tests rendered value after second use.');
 }