You are here

function WebformDefaultFieldsTestCase::testNodeAddingWithTwoFields in Webform Default Fields 7

Same name and namespace in other branches
  1. 6 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAddingWithTwoFields()
  2. 7.4 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAddingWithTwoFields()
  3. 7.3 tests/webform_default_fields.test \WebformDefaultFieldsTestCase::testNodeAddingWithTwoFields()

File

tests/webform_default_fields.test, line 76
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']));
}