public function FontYourFaceFontDisplayTest::testFontNotDisplayed in @font-your-face 8.3
Tests font not displayed even when Arial is loaded.
File
- tests/
src/ Functional/ FontYourFaceFontDisplayTest.php, line 62
Class
- FontYourFaceFontDisplayTest
- Tests that font displays show css.
Namespace
Drupal\Tests\fontyourface\FunctionalCode
public function testFontNotDisplayed() {
$this
->drupalGet(url::fromRoute('entity.font.activate', [
'font' => 1,
'js' => 'nojs',
]));
$this
->resetAll();
// Assert no fonts load to start.
$this
->drupalGet('/node');
$this
->assertNoRaw('<meta name="Websafe Font" content="Arial" />');
}