Fix testing state sensor index dumping order. (#8117)

Add netonix state sensor test data
This commit is contained in:
Tony Murray
2018-01-21 07:43:10 -06:00
committed by GitHub
parent 89c1c2e810
commit f7941797b6
4 changed files with 388 additions and 1 deletions

View File

@@ -583,7 +583,13 @@ class ModuleTestHelper
}
}
$rows = dbFetchRows("SELECT * FROM `$table` $join $where", $params);
if (isset($info['order_by'])) {
$order_by = " ORDER BY {$info['order_by']}";
} else {
$order_by = '';
}
$rows = dbFetchRows("SELECT * FROM `$table` $join $where $order_by", $params);
// remove unwanted fields
if (isset($info['included_fields'])) {