public function NodeSearchSynonymsWebTestCase::setUp in Synonyms 7
SetUp method.
Overrides AbstractSearchSynonymsWebTestCase::setUp
File
- synonyms_search/
synonyms_search.test, line 123 - Tests for the Synonyms Search module.
Class
- NodeSearchSynonymsWebTestCase
- Test Synonyms module integration with Drupal search functionality for nodes.
Code
public function setUp($modules = array()) {
$modules[] = 'entityreference';
parent::setUp($modules);
// Creating a test content type.
$this
->drupalPost('admin/structure/types/add', array(
'name' => 'Synonyms Test Content',
'type' => 'synonyms_test_content',
), 'Save content type');
}