private function AdminUserLanguageUserTest::getuCurrentUserAccount in Admin User Language 8
Return value
\Drupal\Core\Session\AccountInterface|\Drupal\Core\Session\AnonymousUserSession
1 call to AdminUserLanguageUserTest::getuCurrentUserAccount()
- 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 89
Class
- AdminUserLanguageUserTest
- Tests entity presave hook to check admin_user_language functionality.
Namespace
Drupal\Tests\admin_user_language\FunctionalCode
private function getuCurrentUserAccount() {
return $this->container
->get('current_user')
->getAccount();
}