You are here

public function CommerceUPSAdministrationTestCase::testCommerceUPSFieldSaves in Commerce UPS 7

Same name and namespace in other branches
  1. 7.2 tests/commerce_ups.test \CommerceUPSAdministrationTestCase::testCommerceUPSFieldSaves()

File

tests/commerce_ups.test, line 47

Class

CommerceUPSAdministrationTestCase
Administration tests for my module.

Code

public function testCommerceUPSFieldSaves() {
  $form = array(
    'commerce_ups_account_id' => 'test',
    'commerce_ups_user_id' => 'test1',
    'commerce_ups_access_key' => 'test2',
    'commerce_ups_access_key' => 'test3',
    'commerce_ups_default_package_size_length' => 1,
    'commerce_ups_default_package_size_width' => 2,
    'commerce_ups_default_package_size_height' => 3,
    'commerce_ups_password' => 'testb',
  );
  $this
    ->drupalPost('admin/commerce/config/shipping/methods/ups/edit', $form, t('Save configuration'));
}