5 * Install hooks for test module.
8 use Drupal\entity_test\Entity\EntityTest;
11 * Implements hook_install().
13 function simpletest_test_install() {
16 for ($i = 1; $i <= $total; $i++) {
17 $operations[] = ['_simpletest_test_callback', [$i]];
20 'operations' => $operations,
23 $batch =& batch_get();
24 $batch['progressive'] = FALSE;
29 * Callback for batch operations.
31 function _simpletest_test_callback($id) {
32 $entity = EntityTest::create(['id' => $id]);