You are here

function EntityTranslationCommentTestCase::getCommentUser in Entity Translation 7

1 call to EntityTranslationCommentTestCase::getCommentUser()
EntityTranslationCommentTestCase::testCommentLanguageFiltering in tests/entity_translation.test
Test comment filtering by language.

File

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

Class

EntityTranslationCommentTestCase
Basic tests for comment related things.

Code

function getCommentUser() {
  if (empty($this->comment_user)) {
    $this->comment_user = $this
      ->drupalCreateUser(array(
      'access comments',
      'post comments',
      'edit own comments',
    ));
  }
  return $this->comment_user;
}