You are here

function WebformDefaultFieldsTestCase::testNodeAdding in Webform Default Fields 6

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

File

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