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