You are here

protected function AbstractAutocompleteSynonymsWebTestCase::entityLabel in Synonyms 7

Supportive method to retrieve label of a provided entity.

Parameters

object $entity: Entity, whose label should be returned

Return value

string Label of the provided entity

5 calls to AbstractAutocompleteSynonymsWebTestCase::entityLabel()
AbstractAutocompleteSynonymsWebTestCase::testAutocompleteMenuPath in ./synonyms.test
Test autocomplete menu path.
AbstractAutocompleteSynonymsWebTestCase::testAutocompleteTextField in ./synonyms.test
Test autocomplete text field validation.
AbstractAutocompleteSynonymsWebTestCase::testWidgetSettingsSuggestionSize in ./synonyms.test
Test 'Suggestions Size' setting of synonyms-friendly autocomplete widget.
AbstractAutocompleteSynonymsWebTestCase::testWidgetSettingsSuggestOnlyUnique in ./synonyms.test
Test 'Suggest only one entry per term' setting of autocomplete widget.
CommerceProductReferenceAutocompleteSynonymsWebTestCase::createTerms in synonyms_commerce/synonyms_commerce.test
Method to initiate all necessary terms for testing.

File

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

Class

AbstractAutocompleteSynonymsWebTestCase
Test "Synonyms friendly autocomplete" widget of Synonyms module.

Code

protected function entityLabel($entity) {
  return entity_label($this->behavior_implementation['entity_type'], $entity);
}