Mercurial > hg > isophonics-drupal-site
diff core/modules/image/tests/src/Kernel/ImageItemTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line diff
--- a/core/modules/image/tests/src/Kernel/ImageItemTest.php Mon Apr 23 09:33:26 2018 +0100 +++ b/core/modules/image/tests/src/Kernel/ImageItemTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -11,6 +11,7 @@ use Drupal\Tests\field\Kernel\FieldKernelTestBase; use Drupal\field\Entity\FieldStorageConfig; use Drupal\file\Entity\File; +use Drupal\user\Entity\Role; /** * Tests using entity fields of the image field type. @@ -41,6 +42,14 @@ protected function setUp() { parent::setUp(); + $this->installEntitySchema('user'); + $this->installConfig(['user']); + // Give anonymous users permission to access content, so that we can view + // and download public file. + $anonymous_role = Role::load(Role::ANONYMOUS_ID); + $anonymous_role->grantPermission('access content'); + $anonymous_role->save(); + $this->installEntitySchema('file'); $this->installSchema('file', ['file_usage']);