Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d4a14f63
Commit
d4a14f63
authored
Apr 17, 2020
by
Nathaniel Catchpole
Browse files
Issue
#3119922
by sinn, daffie: DeleteTruncateTest should not rely on default sorting order in DB
parent
62bb4d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/KernelTests/Core/Database/DeleteTruncateTest.php
View file @
d4a14f63
...
...
@@ -22,7 +22,7 @@ class DeleteTruncateTest extends DatabaseTestBase {
*/
public
function
testSubselectDelete
()
{
$num_records_before
=
$this
->
connection
->
query
(
'SELECT COUNT(*) FROM {test_task}'
)
->
fetchField
();
$pid_to_delete
=
$this
->
connection
->
query
(
"SELECT * FROM
{
test_task
}
WHERE task = 'sleep'"
)
->
fetchField
();
$pid_to_delete
=
$this
->
connection
->
query
(
"SELECT * FROM
{
test_task
}
WHERE task = 'sleep'
ORDER BY tid
"
)
->
fetchField
();
$subquery
=
$this
->
connection
->
select
(
'test'
,
't'
)
->
fields
(
't'
,
[
'id'
])
...
...
Nathaniel Catchpole
@catch
mentioned in commit
24474732
·
Apr 17, 2020
mentioned in commit
24474732
mentioned in commit 24474732ea976f42ae2b63e7c4186c219ed8d012
Toggle commit list
Nathaniel Catchpole
@catch
mentioned in commit
e96b8de8
·
Apr 17, 2020
mentioned in commit
e96b8de8
mentioned in commit e96b8de825f83bba8c53c724f3503580f7a0bf08
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment