You are here

public function InvoiceNumberGenerationWebTestCase::completeOrder in Commerce Invoice 7

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

File

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

Class

InvoiceNumberGenerationWebTestCase
@file Implements tests for the theme switching rules.

Code

public function completeOrder($order_id) {
  $edit = array();
  $edit['status'] = 'completed';
  $this
    ->drupalPost('admin/commerce/orders/' . $order_id . '/edit', $edit, t('Save order'));
  $this
    ->assertText(t('Order saved.'), 'Order has been completed.');
}