
| Current Path : /var/www/html/strat/web/core/modules/system/tests/src/FunctionalJavascript/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/strat/web/core/modules/system/tests/src/FunctionalJavascript/ActiveLinkTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\system\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
/**
* Tests active link JS behavior.
*
* @see Drupal.behaviors.activeLinks
*
* @group system
*/
class ActiveLinkTest extends WebDriverTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Ensures no JS error is thrown with query strings containing special chars.
*/
public function testQueryStringQuotes(): void {
$user = $this->createUser();
$this->drupalLogin($user);
$this->drupalGet($this->getSession()->getCurrentUrl(), ['query' => ['foo' => "\"'[](){}*+~>|\\/:;,.!@#$%^&-_=?<>"]]);
$this->failOnJavaScriptErrors();
}
}