public function FieldCollectionEntityTranslationTestCase::login in Field collection 7
Login the given user only if she has not changed.
1 call to FieldCollectionEntityTranslationTestCase::login()
- FieldCollectionEntityTranslationTestCase::setUp in ./
field_collection.test - Sets up a Drupal site for running functional and integration tests.
File
- ./
field_collection.test, line 699 - Tests for field_collections.
Class
- FieldCollectionEntityTranslationTestCase
- Test using field collection with content that gets translated with Entity Translation.
Code
public function login($user) {
if (!isset($this->current_user) || $this->current_user->uid != $user->uid) {
$this->current_user = $user;
$this
->drupalLogin($user);
}
}