protected function AjaxFormPageCacheTest::getFormBuildId in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Ajax/AjaxFormPageCacheTest.php \Drupal\system\Tests\Ajax\AjaxFormPageCacheTest::getFormBuildId()
Return the build id of the current form.
1 call to AjaxFormPageCacheTest::getFormBuildId()
- AjaxFormPageCacheTest::testSimpleAJAXFormValue in core/
modules/ system/ src/ Tests/ Ajax/ AjaxFormPageCacheTest.php - Create a simple form, then submit the form via AJAX to change to it.
File
- core/
modules/ system/ src/ Tests/ Ajax/ AjaxFormPageCacheTest.php, line 31 - Contains \Drupal\system\Tests\Ajax\AjaxFormPageCacheTest.
Class
- AjaxFormPageCacheTest
- Performs tests on AJAX forms in cached pages.
Namespace
Drupal\system\Tests\AjaxCode
protected function getFormBuildId() {
$build_id_fields = $this
->xpath('//input[@name="form_build_id"]');
$this
->assertEqual(count($build_id_fields), 1, 'One form build id field on the page');
return (string) $build_id_fields[0]['value'];
}