protected function WebformWizardBasicJavaScriptTest::assertQuery in Webform 6.x
Same name and namespace in other branches
- 8.5 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);
}