/** * Overrides AssertContentTrait::assertText(). * * Workaround for country names with single quote characters; they get * escaped as ' but the parent method does not handle this properly. * * @see https://www.drupal.org/node/2534240 */ protected function assertText($text, $message = '', $group = 'Other') { $text = Html::escape($text); return parent::assertText($text, $message, $group); }