diff --git a/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php b/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php index 75e6ccb..3a16972 100644 --- a/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php +++ b/core/modules/user/tests/src/Unit/UserAccessControlHandlerTest.php @@ -122,6 +122,15 @@ public function assertFieldAccess($field, $viewer, $target, $view, $edit) { $field_definition->expects($this->any()) ->method('getName') ->will($this->returnValue($field)); + $field_definition->expects($this->any()) + ->method('getCacheContexts') + ->will($this->returnValue([])); + $field_definition->expects($this->any()) + ->method('getCacheTags') + ->will($this->returnValue([])); + $field_definition->expects($this->any()) + ->method('getCacheMaxAge') + ->will($this->returnValue([])); $this->items ->expects($this->any())