Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
927e9f07
Unverified
Commit
927e9f07
authored
6 years ago
by
Alex Pott
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2960981
by jtriguero, benjifisher: Change getConnectionID to getConnectionId in kernel tests
parent
b84b827d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
+6
-6
6 additions, 6 deletions
...s/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
with
6 additions
and
6 deletions
core/tests/Drupal/KernelTests/Core/Database/ConnectionUnitTest.php
+
6
−
6
View file @
927e9f07
...
...
@@ -63,7 +63,7 @@ protected function addConnection() {
*
* @return int
*/
protected
function
getConnectionI
D
()
{
protected
function
getConnectionI
d
()
{
return
(
int
)
Database
::
getConnection
(
$this
->
target
,
$this
->
key
)
->
query
(
'SELECT CONNECTION_ID()'
)
->
fetchField
();
}
...
...
@@ -92,7 +92,7 @@ protected function assertNoConnection($id) {
/**
* Tests Database::closeConnection() without query.
*
* @todo getConnectionI
D
() executes a query.
* @todo getConnectionI
d
() executes a query.
*/
public
function
testOpenClose
()
{
if
(
$this
->
skipTest
)
{
...
...
@@ -100,7 +100,7 @@ public function testOpenClose() {
}
// Add and open a new connection.
$this
->
addConnection
();
$id
=
$this
->
getConnectionI
D
();
$id
=
$this
->
getConnectionI
d
();
Database
::
getConnection
(
$this
->
target
,
$this
->
key
);
// Verify that there is a new connection.
...
...
@@ -124,7 +124,7 @@ public function testOpenQueryClose() {
}
// Add and open a new connection.
$this
->
addConnection
();
$id
=
$this
->
getConnectionI
D
();
$id
=
$this
->
getConnectionI
d
();
Database
::
getConnection
(
$this
->
target
,
$this
->
key
);
// Verify that there is a new connection.
...
...
@@ -151,7 +151,7 @@ public function testOpenQueryPrefetchClose() {
}
// Add and open a new connection.
$this
->
addConnection
();
$id
=
$this
->
getConnectionI
D
();
$id
=
$this
->
getConnectionI
d
();
Database
::
getConnection
(
$this
->
target
,
$this
->
key
);
// Verify that there is a new connection.
...
...
@@ -178,7 +178,7 @@ public function testOpenSelectQueryClose() {
}
// Add and open a new connection.
$this
->
addConnection
();
$id
=
$this
->
getConnectionI
D
();
$id
=
$this
->
getConnectionI
d
();
Database
::
getConnection
(
$this
->
target
,
$this
->
key
);
// Verify that there is a new connection.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment