/**
  * Tests the JDatabaseQuery::set method.
  *
  * @return  void
  *
  * @since   11.3
  */
 public function testSet()
 {
     $q = new JDatabaseQueryInspector($this->dbo);
     $this->assertThat($q->set('foo = 1'), $this->identicalTo($q), 'Tests chaining.');
     $this->assertThat(trim($q->set), $this->identicalTo('SET foo = 1'), 'Tests set with a string.');
     // Clear the set.
     $q->set = null;
     $q->set(array('foo = 1', 'bar = 2'));
     $this->assertThat(trim($q->set), $this->identicalTo("SET foo = 1\n\t, bar = 2"), 'Tests set with an array.');
     // Clear the set.
     $q->set = null;
     $q->set(array('foo = 1', 'bar = 2'), ';');
     $this->assertThat(trim($q->set), $this->identicalTo("SET foo = 1\n\t; bar = 2"), 'Tests set with an array and glue.');
 }