diff --git a/src/Form/CheckboxWidgetForm.php b/src/Form/CheckboxWidgetForm.php index 827d645..e958359 100644 --- a/src/Form/CheckboxWidgetForm.php +++ b/src/Form/CheckboxWidgetForm.php @@ -98,6 +98,7 @@ class CheckboxWidgetForm implements BaseFormIdInterface { $current_request = \Drupal::requestStack()->getCurrentRequest(); $request_uri = $current_request->getRequestUri(); + // The $base_request_uri is the current url before the query parameters. // A url that looks like "search/content?f[0]=item:test" should like // "search/content" in $base_request_uri. diff --git a/src/Tests/WebTestBase.php b/src/Tests/WebTestBase.php index 1d6da17..3ce4bfd 100644 --- a/src/Tests/WebTestBase.php +++ b/src/Tests/WebTestBase.php @@ -175,30 +175,4 @@ abstract class WebTestBase extends SimpletestWebTestBase { $this->getIndex()->clear(); } - /** - * Override the parent drupalPost to allow xdebug options. - */ - protected function drupalPost($path, $accept, array $post, $options = array()) { - $options = $this->xdebugOptions($options); - return parent::drupalPost($path, $accept, $post, $options); - } - /** - * Override the parent drupalGet() to add xdebug options. - */ - protected function drupalGet($path, array $options = array(), array $headers = array()) { - $options = $this->xdebugOptions($options); - return parent::drupalGet($path, $options, $headers); - } - /** - * Add an xdebug query argument to the url options. - */ - protected function xdebugOptions(array $options) { - // If XDebug is available, use it. - if (function_exists('xdebug_break') && !isset($options['query']['XDEBUG_SESSION_START'])) { - // You might want to change this value to 1, or to the idekey you've specified in php.ini. - $options['query']['XDEBUG_SESSION_START'] = 'phpstorm'; - } - return $options; - } - }