You are here

protected function EntityTranslationTaxonomyAutocompleteTestCase::autocompleteGet in Entity Translation 7

Performs a GET request to the autocomplete path.

Parameters

string $langcode: The language to use to query results.

string $query: The search query string.

1 call to EntityTranslationTaxonomyAutocompleteTestCase::autocompleteGet()
EntityTranslationTaxonomyAutocompleteTestCase::testTranslatedAutocomplete in tests/entity_translation.test
That the autocomplete works with translated terms.

File

tests/entity_translation.test, line 1469
Tests for Entity translation module.

Class

EntityTranslationTaxonomyAutocompleteTestCase
Tests for the taxonomy autocomplete translation modes.

Code

protected function autocompleteGet($langcode, $query) {
  $path = 'entity_translation/taxonomy_term/autocomplete/' . $langcode . '/field_test_tags/' . $query;
  $languages = language_list();
  $this
    ->drupalGet($path, array(
    'language' => $languages[$langcode],
  ));
}