You are here

public function AbstractSelectSynonymsWebTestCase::setUp in Synonyms 7

SetUp method.

Overrides SynonymsWebTestCase::setUp

3 calls to AbstractSelectSynonymsWebTestCase::setUp()
CommerceProductReferenceSelectSynonymsWebTestCase::setUp in synonyms_commerce/synonyms_commerce.test
SetUp method.
EntityReferenceSelectSynonymsWebTestCase::setUp in ./synonyms.test
SetUp method.
TaxonomyTermReferenceSelectSynonymsWebTestCase::setUp in ./synonyms.test
SetUp method.
3 methods override AbstractSelectSynonymsWebTestCase::setUp()
CommerceProductReferenceSelectSynonymsWebTestCase::setUp in synonyms_commerce/synonyms_commerce.test
SetUp method.
EntityReferenceSelectSynonymsWebTestCase::setUp in ./synonyms.test
SetUp method.
TaxonomyTermReferenceSelectSynonymsWebTestCase::setUp in ./synonyms.test
SetUp method.

File

./synonyms.test, line 1039
Tests for the Synonyms module.

Class

AbstractSelectSynonymsWebTestCase
Test "Synonyms friendly select" widget of Synonyms module.

Code

public function setUp($modules = array()) {
  $this->behavior_implementation['behavior'] = 'select';
  $this->behavior_implementation['settings'] = array(
    'wording' => '@synonym @entity @field_name',
  );
  parent::setUp($modules);

  // Creating a test content type.
  $this
    ->drupalPost('admin/structure/types/add', array(
    'name' => 'Synonyms Test Content',
    'type' => $this->bundle,
  ), 'Save content type');
  $this
    ->createTerms();
}