You are here

10 calls to User::getAnonymousUser() in Drupal 10

AccessTest::testFileCacheability in core/modules/file/tests/src/Kernel/AccessTest.php
Tests cacheability metadata.
Comment::getOwner in core/modules/comment/src/Entity/Comment.php
DbLogController::eventDetails in core/modules/dblog/src/Controller/DbLogController.php
Displays details about a specific database log message.
EntityAccessControlHandlerTest::testUserLabelAccess in core/tests/Drupal/KernelTests/Core/Entity/EntityAccessControlHandlerTest.php
Ensures user labels are accessible for everyone.
FileFieldWidgetTest::testTemporaryFileRemovalExploitAnonymous in core/modules/file/tests/src/Functional/FileFieldWidgetTest.php
Tests exploiting the temporary file removal for anonymous users using fid.
NodeActionsConfigurationTest::testAssignOwnerNodeActionAutocomplete in core/modules/node/tests/src/Functional/NodeActionsConfigurationTest.php
Tests the autocomplete field when configuring the AssignOwnerNode action.
NodeEditFormTest::checkVariousAuthoredByValues in core/modules/node/tests/src/Functional/NodeEditFormTest.php
Checks that the "authored by" works correctly with various values.
UserCancelTest::testUserAnonymize in core/modules/user/tests/src/Functional/UserCancelTest.php
Delete account and anonymize all content.
UserCancelTest::testUserAnonymizeTranslations in core/modules/user/tests/src/Functional/UserCancelTest.php
Delete account and anonymize all content and it's translations.
UserNameFormatterTest::testFormatter in core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
Tests the formatter output.