Commit d4a14f63 authored by catch's avatar catch
Browse files

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

parent 62bb4d91
......@@ -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'])
Markdown is supported
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