Loading core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php +6 −6 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ protected function addConnection() { * * @return int */ protected function getConnectionID() { protected function getConnectionId() { return (int) Database::getConnection($this->target, $this->key)->query('SELECT CONNECTION_ID()')->fetchField(); } Loading Loading @@ -92,7 +92,7 @@ protected function assertNoConnection($id) { /** * Tests Database::closeConnection() without query. * * @todo getConnectionID() executes a query. * @todo getConnectionId() executes a query. */ public function testOpenClose() { if ($this->skipTest) { Loading @@ -100,7 +100,7 @@ public function testOpenClose() { } // 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. Loading @@ -124,7 +124,7 @@ public function testOpenQueryClose() { } // 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. Loading @@ -151,7 +151,7 @@ public function testOpenQueryPrefetchClose() { } // 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. Loading @@ -178,7 +178,7 @@ public function testOpenSelectQueryClose() { } // 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. Loading Loading
core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php +6 −6 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ protected function addConnection() { * * @return int */ protected function getConnectionID() { protected function getConnectionId() { return (int) Database::getConnection($this->target, $this->key)->query('SELECT CONNECTION_ID()')->fetchField(); } Loading Loading @@ -92,7 +92,7 @@ protected function assertNoConnection($id) { /** * Tests Database::closeConnection() without query. * * @todo getConnectionID() executes a query. * @todo getConnectionId() executes a query. */ public function testOpenClose() { if ($this->skipTest) { Loading @@ -100,7 +100,7 @@ public function testOpenClose() { } // 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. Loading @@ -124,7 +124,7 @@ public function testOpenQueryClose() { } // 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. Loading @@ -151,7 +151,7 @@ public function testOpenQueryPrefetchClose() { } // 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. Loading @@ -178,7 +178,7 @@ public function testOpenSelectQueryClose() { } // 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. Loading