You are here

public function UbercartAttributeTestCase::testAttributeUIAttributeOptions in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_attribute/uc_attribute.test \UbercartAttributeTestCase::testAttributeUIAttributeOptions()

Tests the attribute options user interface.

File

uc_attribute/tests/uc_attribute.test, line 441
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/products/attributes/' . $attribute->aid . '/options');
  $this
    ->assertText(t('Options for @name', array(
    '@name' => $attribute->name,
  )), t('Attribute options form working.'));
}