Beispiel #1
0
 /**
  * Tests the \Joomla\Database\DatabaseQuery::group method.
  *
  * @return  void
  *
  * @covers  \Joomla\Database\DatabaseQuery::group
  * @since   1.0
  */
 public function testGroup()
 {
     $this->assertThat($this->instance->group('foo'), $this->identicalTo($this->instance), 'Tests chaining.');
     $this->assertThat(trim(TestHelper::getValue($this->instance, 'group')), $this->equalTo('GROUP BY foo'), 'Tests rendered value.');
     // Add another column.
     $this->instance->group('bar');
     $this->assertThat(trim(TestHelper::getValue($this->instance, 'group')), $this->equalTo('GROUP BY foo,bar'), 'Tests rendered value after second use.');
 }