You are here

public function FontYourFaceLocalFontInstallTest::testFontYourFaceLocalFontsSection in @font-your-face 8.3

Tests @font-your-face install and admin page shows up.

File

tests/src/Functional/FontYourFaceLocalFontInstallTest.php, line 49

Class

FontYourFaceLocalFontInstallTest
Tests that installing @font-your-face local fonts module is not broken.

Namespace

Drupal\Tests\fontyourface\Functional

Code

public function testFontYourFaceLocalFontsSection() {

  // Font settings page.
  $this
    ->drupalGet(Url::fromRoute('entity.local_font_config_entity.collection'));
  $this
    ->assertText(t('There are no custom font entities yet.'));
  $this
    ->drupalGet(Url::fromRoute('entity.local_font_config_entity.add_form'));
  $this
    ->assertText(t('Name of the Custom Font'));
}