You are here

public function InvoiceNumberGenerationWebTestCase::chooseNumberGenerationStrategy in Commerce Invoice 7

1 call to InvoiceNumberGenerationWebTestCase::chooseNumberGenerationStrategy()
InvoiceNumberGenerationWebTestCase::testSimpleIdNumberGeneration in tests/number_generation.test

File

tests/number_generation.test, line 62
Implements tests for the theme switching rules.

Class

InvoiceNumberGenerationWebTestCase
@file Implements tests for the theme switching rules.

Code

public function chooseNumberGenerationStrategy($strategy_id, $callback = NULL) {
  $edit = array();
  $edit['commerce_invoice_number_method'] = $strategy_id;
  $this
    ->drupalPost('admin/commerce/config/invoice', $edit, t('Save configuration'));
  $this
    ->assertText(t('The configuration options have been saved.'), 'Number generation strategy has been set to "' . $strategy_id . '"');
}