You are here

public function CommerceProductReferenceSynonymsBehaviorWebTestCase::setUp in Synonyms 7

SetUp method.

Overrides AbstractSynonymsProviderFieldWebTestCase::setUp

File

synonyms_commerce/synonyms_commerce.test, line 615
Tests for the Synonyms Commerce module.

Class

CommerceProductReferenceSynonymsBehaviorWebTestCase
Test CommerceProductReferenceSynonymsBehavior class.

Code

public function setUp($modules = array()) {
  $modules[] = 'commerce_product_reference';
  $modules[] = 'commerce_product_ui';
  $modules[] = 'synonyms_commerce';
  $this->fields['enabled']['field'] = array(
    'field_name' => 'reference',
    'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    'type' => 'commerce_product_reference',
  );
  parent::setUp($modules);
}