Mercurial > hg > isophonics-drupal-site
comparison core/modules/views/tests/src/Functional/SearchIntegrationTest.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Tests\views\Functional; | 3 namespace Drupal\Tests\views\Functional; |
4 | 4 |
5 use Drupal\Component\Utility\SafeMarkup; | 5 use Drupal\Component\Render\FormattableMarkup; |
6 use Drupal\Tests\Traits\Core\CronRunTrait; | 6 use Drupal\Tests\Traits\Core\CronRunTrait; |
7 | 7 |
8 /** | 8 /** |
9 * Tests search integration filters. | 9 * Tests search integration filters. |
10 * | 10 * |
143 * @return bool | 143 * @return bool |
144 * TRUE if the assertion succeeded, FALSE otherwise. | 144 * TRUE if the assertion succeeded, FALSE otherwise. |
145 */ | 145 */ |
146 protected function assertOneLink($label) { | 146 protected function assertOneLink($label) { |
147 $links = $this->xpath('//a[normalize-space(text())=:label]', [':label' => $label]); | 147 $links = $this->xpath('//a[normalize-space(text())=:label]', [':label' => $label]); |
148 $message = SafeMarkup::format('Link with label %label found once.', ['%label' => $label]); | 148 $message = new FormattableMarkup('Link with label %label found once.', ['%label' => $label]); |
149 return $this->assert(isset($links[0]) && !isset($links[1]), $message); | 149 return $this->assert(isset($links[0]) && !isset($links[1]), $message); |
150 } | 150 } |
151 | 151 |
152 } | 152 } |