Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / hal / tests / src / Functional / FileDenormalizeTest.php
index 05ee23489394832d3457ad7c664a6d704bd905bd..9c00902988d4f8a5f1111cb5f4af56d7aaf5ec85 100644 (file)
@@ -20,6 +20,20 @@ class FileDenormalizeTest extends BrowserTestBase {
    */
   public static $modules = ['hal', 'file', 'node'];
 
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+
+    // @todo Remove this work-around in https://www.drupal.org/node/1927648.
+    // @see hal_update_8501()
+    \Drupal::configFactory()
+      ->getEditable('hal.settings')
+      ->set('bc_file_uri_as_url_normalizer', TRUE)
+      ->save(TRUE);
+  }
+
   /**
    * Tests file entity denormalization.
    */