You are here

public function UcAddressesOrderTestCase::testOrderExtraFields in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 tests/uc_addresses.order.test \UcAddressesOrderTestCase::testOrderExtraFields()

Test if editing an order works properly when an extra field is added that's not registered through Ubercart Addresses hooks.

File

tests/uc_addresses.order.test, line 76
Test cases for order admin.

Class

UcAddressesOrderTestCase
Test cases order administration.

Code

public function testOrderExtraFields() {
  $ret = array();
  $definition = array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  );
  db_add_field($ret, 'uc_orders', 'delivery_extra_field', $definition);
  $this
    ->testOrderEditing();
}