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