You are here

protected function EntityTranslationIntegrationTestCase::getUserRole in Entity Translation 7

Returns the role id of an $account object.

1 call to EntityTranslationIntegrationTestCase::getUserRole()
EntityTranslationIntegrationTestCase::testPathautoIntegration in tests/entity_translation.test
Tests Pathauto integration.

File

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

Class

EntityTranslationIntegrationTestCase
Tests for integration of Entity Translation with other modules.

Code

protected function getUserRole($account) {
  return reset($account->roles);
}