fixing the TravisCI build with InfluxDB new features:

- dbs is changed to db in the latest InfluxDB when listing dbs
 - username is changed to name in the latest InfluxDB when creating
   user
 - PHPUnit_Framework_TestCase instead of phpunit_framework_testcase
 - Grouping by anything but time does not return time anymore
This commit is contained in:
Pablo Lopez Torres
2014-09-04 18:28:50 +02:00
parent cb2d802d83
commit 42d2c2d1f0
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ class Client extends BaseHTTP
$self = $this;
return array_map(function($obj) use($self) {
return new DB($self, $obj['name']);
}, $this->get('dbs'));
}, $this->get('db'));
}
public function getDatabase($name)
+2 -2
View File
@@ -85,8 +85,8 @@ class DB extends BaseHTTP
return new Cursor($this->get('series', ['q' => $sql, 'time_precision' => $this->timePrecision]));
}
public function createUser($username, $password)
public function createUser($name, $password)
{
return $this->post('users', compact('username', 'password'));
return $this->post('users', compact('name', 'password'));
}
}