diff --git a/core/modules/field/src/Tests/FieldUnitTestBase.php b/core/modules/field/src/Tests/FieldUnitTestBase.php index 67ca02e..c69ee2d 100644 --- a/core/modules/field/src/Tests/FieldUnitTestBase.php +++ b/core/modules/field/src/Tests/FieldUnitTestBase.php @@ -53,6 +53,17 @@ protected function setUp() { // Set default storage backend and configure the theme system. $this->installConfig(array('field', 'system')); + + // Create user 1. + $storage = \Drupal::entityManager()->getStorage('user'); + $storage + ->create(array( + 'uid' => 1, + 'name' => 'entity-test', + 'mail' => 'entity@localhost', + 'status' => TRUE, + )) + ->save(); } /**