You are here

public function InvoiceNumberGenerationWebTestCase::disableEmailSendingRule in Commerce Invoice 7

1 call to InvoiceNumberGenerationWebTestCase::disableEmailSendingRule()
InvoiceNumberGenerationWebTestCase::setUp in tests/number_generation.test
Sets up a Drupal site for running functional and integration tests.

File

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

Class

InvoiceNumberGenerationWebTestCase
@file Implements tests for the theme switching rules.

Code

public function disableEmailSendingRule() {
  $edit = array();
  $this
    ->drupalPost('admin/config/workflow/rules/reaction/manage/2/disable', $edit, t('Confirm'));
  $this
    ->assertText('Disabled reaction rule Send an invoice notification e-mail.', 'Invoice email rule deactivated');
}