public function CommerceUPSAdministrationTestCase::testCommerceUPSFieldSaves in Commerce UPS 7.2
Same name and namespace in other branches
- 7 tests/commerce_ups.test \CommerceUPSAdministrationTestCase::testCommerceUPSFieldSaves()
This function will generate a fake credentails in order to use the test funcionality.
File
- tests/
commerce_ups.test, line 51 - This will allows me to test the commerce ups module.
Class
- CommerceUPSAdministrationTestCase
- Administration tests for Commerce UPS.
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'));
}