You are here

public function CommerceWebformTestCase::createWebformNode in Commerce Webform 7.2

Create a webform node.

Return value

object

1 call to CommerceWebformTestCase::createWebformNode()
CommerceWebformTestCase::testSingleProductNoQuantitiesCommerceWebform in tests/commerce_webform.test
Test the ability to create a webform and add a product to it.

File

tests/commerce_webform.test, line 85
Commerce Webform tests.

Class

CommerceWebformTestCase
Test Commerce Webform module's features.

Code

public function createWebformNode() {
  return $this
    ->drupalCreateNode(array(
    'title' => 'Commerce Webform Node',
    'type' => 'webform',
    'status' => '1',
  ));
}