public function UbercartAttributeTestCase::testAttributeUIAttributeOptions in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_attribute/tests/uc_attribute.test \UbercartAttributeTestCase::testAttributeUIAttributeOptions()
Tests the attribute options user interface.
File
- uc_attribute/
uc_attribute.test, line 467 - Ubercart Attribute Tests
Class
- UbercartAttributeTestCase
- SimpleTests for the Ubercart Attributes API.
Code
public function testAttributeUIAttributeOptions() {
$attribute = self::createAttribute();
$option = self::createAttributeOption(array(
'aid' => $attribute->aid,
));
uc_attribute_option_save($option);
$this
->drupalGet('admin/store/attributes/' . $attribute->aid . '/options');
$this
->AssertText(t('Options for @name', array(
'@name' => $attribute->name,
)), t('Attribute options form working.'), t('Ubercart'));
}