8 calls to User::getAnonymousUser()

AccessTest::testFileCacheability in core/modules/file/tests/src/Kernel/AccessTest.php
Tests cacheability metadata.
Comment::getOwner in core/modules/comment/src/Entity/Comment.php
Returns the entity owner's user entity.
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.
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.
UserNameFormatterTest::testFormatter in core/modules/user/tests/src/Kernel/Field/UserNameFormatterTest.php
Tests the formatter output.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.