diff --git a/src/Tests/IntegrationTest.php b/src/Tests/IntegrationTest.php index 3fcc592..455d363 100644 --- a/src/Tests/IntegrationTest.php +++ b/src/Tests/IntegrationTest.php @@ -7,6 +7,7 @@ namespace Drupal\search_api\Tests; +use Drupal\Component\Utility\Html; use Drupal\Component\Utility\Unicode; use Drupal\search_api\Entity\Index; use Drupal\search_api\Entity\Server; @@ -119,10 +120,10 @@ class IntegrationTest extends WebTestBase { $this->drupalPostForm(NULL, array(), $this->t('Save field settings')); $this->drupalGet($this->getIndexPath('fields')); - $this->assertRaw($field_name); + $this->assertRaw(Html::escape($field_name)); $this->drupalGet($this->getIndexPath('edit')); - $this->assertRaw($content_type_name); + $this->assertRaw(Html::escape($content_type_name)); } /**