Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / config / Tests / Exception / FileLoaderLoadExceptionTest.php
index c1ad9150e6a9968aaa44122b1e8a90e3c33f5517..8363084c19a221f9d413362514a1380b53de4ae1 100644 (file)
@@ -22,6 +22,18 @@ class FileLoaderLoadExceptionTest extends TestCase
         $this->assertEquals('Cannot load resource "resource".', $exception->getMessage());
     }
 
+    public function testMessageCannotLoadResourceWithType()
+    {
+        $exception = new FileLoaderLoadException('resource', null, null, null, 'foobar');
+        $this->assertEquals('Cannot load resource "resource". Make sure there is a loader supporting the "foobar" type.', $exception->getMessage());
+    }
+
+    public function testMessageCannotLoadResourceWithAnnotationType()
+    {
+        $exception = new FileLoaderLoadException('resource', null, null, null, 'annotation');
+        $this->assertEquals('Cannot load resource "resource". Make sure annotations are installed and enabled.', $exception->getMessage());
+    }
+
     public function testMessageCannotImportResourceFromSource()
     {
         $exception = new FileLoaderLoadException('resource', 'sourceResource');