Issue #3154203 by jungle: Fix "appear" typos in core

merge-requests/64/head
Alex Pott 2020-06-23 16:38:36 +01:00
parent b096f36ef6
commit be0a6b832b
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ class LocalTasksTest extends BrowserTestBase {
* @return bool
* TRUE if the local task exists on the page.
*/
protected function assertLocalTaskAppers($title) {
protected function assertLocalTaskAppears($title) {
// SimpleXML gives us the unescaped text, not the actual escaped markup,
// so use a pattern instead to check the raw content.
// This behavior is a bug in libxml, see
@ -116,9 +116,9 @@ class LocalTasksTest extends BrowserTestBase {
// Verify that script tags are escaped on output.
$title = Html::escape("Task 1 <script>alert('Welcome to the jungle!')</script>");
$this->assertLocalTaskAppers($title);
$this->assertLocalTaskAppears($title);
$title = Html::escape("<script>alert('Welcome to the derived jungle!')</script>");
$this->assertLocalTaskAppers($title);
$this->assertLocalTaskAppears($title);
// Verify that local tasks appear as defined in the router.
$this->drupalGet(Url::fromRoute('menu_test.local_task_test_tasks_view'));
@ -130,7 +130,7 @@ class LocalTasksTest extends BrowserTestBase {
]);
$title = Html::escape("<script>alert('Welcome to the jungle!')</script>");
$this->assertLocalTaskAppers($title);
$this->assertLocalTaskAppears($title);
// Ensure the view tab is active.
$result = $this->xpath('//ul[contains(@class, "tabs")]//li[contains(@class, "active")]/a');