public function WebformGeneralTestCase::webformRecordExists in Webform 7.3
Same name and namespace in other branches
- 6.3 tests/webform.test \WebformGeneralTestCase::webformRecordExists()
- 7.4 tests/WebformGeneralTestCase.test \WebformGeneralTestCase::webformRecordExists()
2 calls to WebformGeneralTestCase::webformRecordExists()
- WebformGeneralTestCase::testWebformCreate in tests/
webform.test - Test creating a new Webform node.
- WebformGeneralTestCase::testWebformCreateNewType in tests/
webform.test - Test webform-enabling a different node type and testing behavior.
File
- tests/
webform.test, line 820 - Webform module tests.
Class
- WebformGeneralTestCase
- Test general functionality of Webform.
Code
public function webformRecordExists($nid) {
return (bool) db_query("SELECT nid FROM {webform} WHERE nid = :nid", array(
':nid' => $nid,
))
->fetchField();
}