Created
July 17, 2017 04:16
-
-
Save travislopes/fd243ee24146cc59ac400060026d9399 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once GFCommon::get_base_path() . '/tests/gravityforms-factory.php'; | |
// Get forms. | |
$forms = GFAPI::get_forms(); | |
// Loop through forms. | |
foreach ( $forms as $form ) { | |
// Initialize factory. | |
$factory = new GF_UnitTest_Factory(); | |
// Generate entries for form. | |
$factory->entry->create_many_random( rand( 10, 100 ), $form['id'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment