Skip to content
Snippets Groups Projects
Commit f352b55c authored by Angie Byron's avatar Angie Byron
Browse files

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

Issue #2080117 by Enxebre, mcrittenden: Add assertion to Drupal/system/Tests/Database/DeleteTruncateTest.php.
parent d0ef1908
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -69,6 +69,7 @@ function testSimpleDelete() { ...@@ -69,6 +69,7 @@ function testSimpleDelete() {
*/ */
function testTruncate() { function testTruncate() {
$num_records_before = db_query("SELECT COUNT(*) FROM {test}")->fetchField(); $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(); db_truncate('test')->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment