Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / fontyourface / tests / src / Functional / FontYourFaceSubmoduleInstallTest.php
index b561ff1fc2d936988c76902004c2812aeb4cf7ef..4ebc4ae2f5215d5792e57aa5aac31e13e95a717c 100644 (file)
@@ -58,7 +58,6 @@ class FontYourFaceSubmoduleInstallTest extends WebTestBase {
 
     $this->drupalPostForm(Url::fromRoute('font.settings'), [], t('Import from websafe_fonts_test'));
     $this->assertResponse(200);
-    $this->assertUrl(Url::fromRoute('font.settings'));
     $this->assertText(t('Finished importing fonts.'));
 
     // Assert all fonts were imported.
@@ -88,7 +87,7 @@ class FontYourFaceSubmoduleInstallTest extends WebTestBase {
     $this->assertNoRaw('<meta name="Websafe Font" content="Arial" />');
 
     $this->drupalPostForm(Url::fromRoute('font.settings'), ['load_all_enabled_fonts' => 1], t('Import from websafe_fonts_test'));
-    $this->drupalGet(url::fromRoute('entity.font.enable', ['font' => 1, 'js' => 'nojs']));
+    $this->drupalGet(url::fromRoute('entity.font.activate', ['font' => 1, 'js' => 'nojs']));
     $this->assertText('Font Arial successfully enabled');
 
     // Flush the caches. Not an issue in prod but seems to be in simpletest. Will keep an eye on it.