*
* @return int
*/
- protected function getConnectionID() {
+ protected function getConnectionId() {
return (int) Database::getConnection($this->target, $this->key)->query('SELECT CONNECTION_ID()')->fetchField();
}
/**
* Tests Database::closeConnection() without query.
*
- * @todo getConnectionID() executes a query.
+ * @todo getConnectionId() executes a query.
*/
public function testOpenClose() {
if ($this->skipTest) {
}
// Add and open a new connection.
$this->addConnection();
- $id = $this->getConnectionID();
+ $id = $this->getConnectionId();
Database::getConnection($this->target, $this->key);
// Verify that there is a new connection.
}
// Add and open a new connection.
$this->addConnection();
- $id = $this->getConnectionID();
+ $id = $this->getConnectionId();
Database::getConnection($this->target, $this->key);
// Verify that there is a new connection.
}
// Add and open a new connection.
$this->addConnection();
- $id = $this->getConnectionID();
+ $id = $this->getConnectionId();
Database::getConnection($this->target, $this->key);
// Verify that there is a new connection.
}
// Add and open a new connection.
$this->addConnection();
- $id = $this->getConnectionID();
+ $id = $this->getConnectionId();
Database::getConnection($this->target, $this->key);
// Verify that there is a new connection.