protected function WebformWizardBasicJavaScriptTest::assertQuery in Webform 8.5
Same name and namespace in other branches
- 6.x tests/src/FunctionalJavascript/Wizard/WebformWizardBasicJavaScriptTest.php \Drupal\Tests\webform\FunctionalJavascript\Wizard\WebformWizardBasicJavaScriptTest::assertQuery()
Passes if the query string on the current page is matched, fail otherwise.
Parameters
string $expected_query: The expected query string.
1 call to WebformWizardBasicJavaScriptTest::assertQuery()
- WebformWizardBasicJavaScriptTest::testBasicWizard in tests/
src/ FunctionalJavascript/ Wizard/ WebformWizardBasicJavaScriptTest.php - Test webform basic wizard.
File
- tests/
src/ FunctionalJavascript/ Wizard/ WebformWizardBasicJavaScriptTest.php, line 110
Class
- WebformWizardBasicJavaScriptTest
- Tests for webform basic wizard.
Namespace
Drupal\Tests\webform\FunctionalJavascript\WizardCode
protected function assertQuery($expected_query = '') {
$actual_query = parse_url($this
->getSession()
->getCurrentUrl(), PHP_URL_QUERY) ?: '';
$this
->assertEquals($expected_query, $actual_query);
}