Commit e96b8de8 authored by Nathaniel Catchpole's avatar Nathaniel Catchpole
Browse files

Issue #3119922 by sinn, daffie: DeleteTruncateTest should not rely on default sorting order in DB

(cherry picked from commit d4a14f63)
parent 5fddf298
......@@ -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'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment