You are here

private function AdminUserLanguageUserTest::getDrupalUser in Admin User Language 8

Parameters

$uid:

Return value

\Drupal\Core\Entity\EntityInterface|null

2 calls to AdminUserLanguageUserTest::getDrupalUser()
AdminUserLanguageUserTest::getAdminUserLang in tests/src/Functional/AdminUserLanguageUserTest.php
AdminUserLanguageUserTest::testCoreFunctionalityOnUserRegistrationAndEdit in tests/src/Functional/AdminUserLanguageUserTest.php
Test if an admin language is correctly set on user registration or edit.

File

tests/src/Functional/AdminUserLanguageUserTest.php, line 97

Class

AdminUserLanguageUserTest
Tests entity presave hook to check admin_user_language functionality.

Namespace

Drupal\Tests\admin_user_language\Functional

Code

private function getDrupalUser($uid) {
  return \Drupal::entityTypeManager()
    ->getStorage('user')
    ->load($uid);
}