Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
9 use Drupal\entity_test\Entity\EntityTest; | 9 use Drupal\entity_test\Entity\EntityTest; |
10 use Drupal\field\Entity\FieldConfig; | 10 use Drupal\field\Entity\FieldConfig; |
11 use Drupal\Tests\field\Kernel\FieldKernelTestBase; | 11 use Drupal\Tests\field\Kernel\FieldKernelTestBase; |
12 use Drupal\field\Entity\FieldStorageConfig; | 12 use Drupal\field\Entity\FieldStorageConfig; |
13 use Drupal\file\Entity\File; | 13 use Drupal\file\Entity\File; |
14 use Drupal\user\Entity\Role; | |
14 | 15 |
15 /** | 16 /** |
16 * Tests using entity fields of the image field type. | 17 * Tests using entity fields of the image field type. |
17 * | 18 * |
18 * @group image | 19 * @group image |
38 */ | 39 */ |
39 protected $imageFactory; | 40 protected $imageFactory; |
40 | 41 |
41 protected function setUp() { | 42 protected function setUp() { |
42 parent::setUp(); | 43 parent::setUp(); |
44 | |
45 $this->installEntitySchema('user'); | |
46 $this->installConfig(['user']); | |
47 // Give anonymous users permission to access content, so that we can view | |
48 // and download public file. | |
49 $anonymous_role = Role::load(Role::ANONYMOUS_ID); | |
50 $anonymous_role->grantPermission('access content'); | |
51 $anonymous_role->save(); | |
43 | 52 |
44 $this->installEntitySchema('file'); | 53 $this->installEntitySchema('file'); |
45 $this->installSchema('file', ['file_usage']); | 54 $this->installSchema('file', ['file_usage']); |
46 | 55 |
47 FieldStorageConfig::create([ | 56 FieldStorageConfig::create([ |