function WebformDefaultFieldsTestCase::testNodeAdding in Webform Default Fields 7
Same name and namespace in other branches
- 6 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAdding()
- 7.4 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAdding()
- 7.3 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAdding()
File
- tests/
webform_default_fields.test, line 68 - Webform Default Fields module tests.
Class
- WebformDefaultFieldsTestCase
- @file Webform Default Fields module tests.
Code
function testNodeAdding() {
$this
->_addTestComponent();
$new_node = new stdClass();
$new_node->type = $this->_content_type;
node_save($new_node);
$this
->assertEqual(1, count($new_node->webform['components']));
}