diff --git a/modules/simpletest/tests/upgrade/drupal-6.upload.database.php b/modules/simpletest/tests/upgrade/drupal-6.upload.database.php index c7f032e..b76cb3e 100644 --- a/modules/simpletest/tests/upgrade/drupal-6.upload.database.php +++ b/modules/simpletest/tests/upgrade/drupal-6.upload.database.php @@ -416,3 +416,25 @@ db_insert('upload')->fields(array( 'weight' => '0', )) ->execute(); + +// Add series of entries for invalid node vids to the {upload} table. +for ($i = 30; $i < 1000; $i++) { + db_insert('upload')->fields(array( + 'fid', + 'nid', + 'vid', + 'description', + 'list', + 'weight', + )) + ->values(array( + 'fid' => $i, + 'nid' => '40', + 'vid' => 24 + $i, + 'description' => 'crazy-basename.png', + 'list' => '1', + 'weight' => '0', + )) + ->execute(); + +}