You are here

public function MetatagStringTest::checkString in Metatag 8

Tests that specific strings are not double escaped.

3 calls to MetatagStringTest::checkString()
MetatagStringTest::testAmpersand in tests/src/Functional/MetatagStringTest.php
Tests that a meta tag with an ampersand is not double escaped.
MetatagStringTest::testDoubleQuote in tests/src/Functional/MetatagStringTest.php
Tests that a meta tag with a double quote is not double escaped.
MetatagStringTest::testSingleQuote in tests/src/Functional/MetatagStringTest.php
Tests that a meta tag with single quote is not double escaped.

File

tests/src/Functional/MetatagStringTest.php, line 107

Class

MetatagStringTest
Ensures that the Metatag field works correctly.

Namespace

Drupal\Tests\metatag\Functional

Code

public function checkString($string) {
  $this
    ->checkConfig($string);
  $this
    ->checkNode($string);
  $this
    ->checkEncodedField($string);
}