Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / fontyourface / tests / src / Functional / FontYourFaceFontDisplayTest.php
index bdbf4d8eb2d78183c9d061a38cea551f4cd528a2..fb755a402d77e906cad6cce600020539dc3fa966 100644 (file)
@@ -53,7 +53,7 @@ class FontYourFaceFontDisplayTest extends WebTestBase {
    * Tests font not displayed even when Arial is loaded.
    */
   public function testFontNotDisplayed() {
-    $this->drupalGet(url::fromRoute('entity.font.enable', ['font' => 1, 'js' => 'nojs']));
+    $this->drupalGet(url::fromRoute('entity.font.activate', ['font' => 1, 'js' => 'nojs']));
     $this->resetAll();
     // Assert no fonts load to start.
     $this->drupalGet('/node');
@@ -64,7 +64,7 @@ class FontYourFaceFontDisplayTest extends WebTestBase {
    * Tests font displayed once added in FontDisplay.
    */
   public function testFontDisplayedViaFontDisplayRule() {
-    $this->drupalGet(url::fromRoute('entity.font.enable', ['font' => 1, 'js' => 'nojs']));
+    $this->drupalGet(url::fromRoute('entity.font.activate', ['font' => 1, 'js' => 'nojs']));
 
     $edit = [
       'label' => 'Headers',