protected function UCDropdownAttributesTestCase::createProductClass in Dropdown Attributes 7
Creates a new product class.
1 call to UCDropdownAttributesTestCase::createProductClass()
- UCDropdownAttributesTestCase::testClassAttributeDependency in tests/
uc_dropdown_attributes.test - Test for dropdown attributes in product classes.
File
- tests/
uc_dropdown_attributes.test, line 277 - Tests for Dropdown Attributes.
Class
- UCDropdownAttributesTestCase
- Provides tests for Dropdown Attributes.
Code
protected function createProductClass($class) {
$edit = array(
'pcid' => $class,
'name' => $class,
'description' => $this
->randomName(32),
);
$this
->drupalPost('admin/store/products/classes', $edit, t('Save'));
}