Mercurial > hg > isophonics-drupal-site
comparison core/modules/media/tests/src/Functional/MediaSourceFileTest.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 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Tests\media\Functional; | 3 namespace Drupal\Tests\media\Functional; |
4 | 4 |
5 use Drupal\field\Entity\FieldConfig; | 5 use Drupal\field\Entity\FieldConfig; |
6 use Drupal\media\Entity\MediaType; | |
7 | 6 |
8 /** | 7 /** |
9 * Tests the file media source. | 8 * Tests the file media source. |
10 * | 9 * |
11 * @group media | 10 * @group media |
12 */ | 11 */ |
13 class MediaSourceFileTest extends MediaFunctionalTestBase { | 12 class MediaSourceFileTest extends MediaFunctionalTestBase { |
14 | |
15 /** | |
16 * {@inheritdoc} | |
17 */ | |
18 protected function setUp() { | |
19 parent::setUp(); | |
20 | |
21 // We need to test without any default configuration in place. | |
22 // @TODO: Remove this as part of https://www.drupal.org/node/2883813. | |
23 MediaType::load('file')->delete(); | |
24 } | |
25 | 13 |
26 /** | 14 /** |
27 * Test that it's possible to change the allowed file extensions. | 15 * Test that it's possible to change the allowed file extensions. |
28 */ | 16 */ |
29 public function testSourceFieldSettingsEditing() { | 17 public function testSourceFieldSettingsEditing() { |