Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / media / tests / src / Kernel / MediaSourceFileTest.php
index d716e15b40c27d85081f2cfcac7c741a0de8f5c5..c36f2b63975ffa952331c8ee809993aac7e583af 100644 (file)
@@ -2,8 +2,6 @@
 
 namespace Drupal\Tests\media\Kernel;
 
-use Drupal\media\Entity\MediaType;
-
 /**
  * Tests the file media source.
  *
@@ -11,18 +9,6 @@ use Drupal\media\Entity\MediaType;
  */
 class MediaSourceFileTest extends MediaKernelTestBase {
 
-  /**
-   * {@inheritdoc}
-   */
-  protected function setUp() {
-    parent::setUp();
-
-    // We need to test without any default configuration in place.
-    // @TODO: Remove this as part of https://www.drupal.org/node/2883813.
-    MediaType::load('file')->delete();
-    MediaType::load('image')->delete();
-  }
-
   /**
    * Tests the file extension constraint.
    */
@@ -32,7 +18,7 @@ class MediaSourceFileTest extends MediaKernelTestBase {
     $media = $this->generateMedia('test.patch', $mediaType);
     $result = $media->validate();
     $this->assertCount(1, $result);
-    $this->assertEquals('field_media_file.0', $result->get(0)->getPropertyPath());
+    $this->assertSame('field_media_file.0', $result->get(0)->getPropertyPath());
     $this->assertContains('Only files with the following extensions are allowed:', (string) $result->get(0)->getMessage());
 
     // Create a random file that should pass.