You are here

function WebformGeneralTestCase::webformRecordExists in Webform 6.3

Same name and namespace in other branches
  1. 7.4 tests/WebformGeneralTestCase.test \WebformGeneralTestCase::webformRecordExists()
  2. 7.3 tests/webform.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 802
Webform module tests.

Class

WebformGeneralTestCase
Test general functionality of Webform.

Code

function webformRecordExists($nid) {
  return (bool) db_result(db_query("SELECT nid FROM {webform} WHERE nid = %d", $nid));
}