Commit f352b55c authored by webchick's avatar webchick

Issue #2080117 by Enxebre, mcrittenden: Add assertion to...

Issue #2080117 by Enxebre, mcrittenden: Add assertion to Drupal/system/Tests/Database/DeleteTruncateTest.php.
parent d0ef1908
......@@ -69,6 +69,7 @@ function testSimpleDelete() {
*/
function testTruncate() {
$num_records_before = db_query("SELECT COUNT(*) FROM {test}")->fetchField();
$this->assertTrue($num_records_before > 0, 'The table is not empty.');
db_truncate('test')->execute();
......
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