function DropdownAttributeTestCase::createProductClass in Dropdown Attributes 6
Creates a new product class.
Overrides UbercartTestHelper::createProductClass
1 call to DropdownAttributeTestCase::createProductClass()
- DropdownAttributeTestCase::testClassAttributeDependency in tests/
uc_dropdown_attributes.test - Tests for dropdown attributes in product classes.
File
- tests/
uc_dropdown_attributes.test, line 266 - Dropdown Attribute Tests
Class
- DropdownAttributeTestCase
- Tests for Dropdown Attributes.
Code
function createProductClass($class) {
$edit = array(
'pcid' => $class,
'name' => $class,
'description' => $this
->randomName(32),
);
$this
->drupalPost('admin/store/products/classes', $edit, t('Submit'));
}