protected static function UbercartAttributeTestCase::attributeOptionFieldsToTest in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_attribute/tests/uc_attribute.test \UbercartAttributeTestCase::attributeOptionFieldsToTest()
Tests the product class attribute option user interface.
1 call to UbercartAttributeTestCase::attributeOptionFieldsToTest()
- UbercartAttributeTestCase::testAttributeAPI in uc_attribute/
uc_attribute.test - Tests the basic attribute API.
File
- uc_attribute/
uc_attribute.test, line 803 - Ubercart Attribute Tests
Class
- UbercartAttributeTestCase
- SimpleTests for the Ubercart Attributes API.
Code
protected static function attributeOptionFieldsToTest($type = '') {
$fields = array(
'aid',
'oid',
'name',
'cost',
'price',
'weight',
'ordering',
);
switch ($type) {
case 'product':
case 'class':
$info = uc_attribute_type_info($type);
$fields = array_merge($fields, array(
$info['id'],
));
break;
}
return $fields;
}