You are here

function BpcDisplayTestCase::submitBulkForm in Commerce Bulk Product Creation 7.2

Submits the bulk creation form.

This function resets the SKU fragment, so it can be used multiple times without creating duplicate SKUs.

Parameters

string $button: (optional) The text of the submit button that should be triggered. Defaults to 'Create products'.

3 calls to BpcDisplayTestCase::submitBulkForm()
BpcDisplayTestCase::testOneToOneNodeCreation in modules/bpc_display/bpc_display.test
Tests the automatic creation of a one display node per product.
BpcDisplayTestCase::testSingleNodeCreation in modules/bpc_display/bpc_display.test
Tests the automatic creation of a single display node.
BpcDisplayTestCase::testWizardNodeCreation in modules/bpc_display/bpc_display.test
Tests wizard-style display node creation.

File

modules/bpc_display/bpc_display.test, line 301
Tests for Commerce BPC display node creation

Class

BpcDisplayTestCase
@file Tests for Commerce BPC display node creation

Code

function submitBulkForm($button = 'Create products') {
  $params = $this->params;
  $params['sku_fragment'] = $this
    ->randomName(5);
  $this
    ->drupalPost($this->bulkUrl, $params, $button);
}