You are here

function WebformMatrixTestCase::tearDown in Webform Matrix Component 7.4

Implements tearDown().

Overrides DrupalWebTestCase::tearDown

File

tests/webform_matrix_component.test, line 95
Tests for the Weform Matrix Component module.

Class

WebformMatrixTestCase
Tests for webform matrix component.

Code

function tearDown() {

  // Delete webform nodes.
  $result = db_select('node')
    ->fields('node')
    ->condition('type', 'webform')
    ->execute();
  foreach ($result as $node) {
    node_delete($node->nid);
  }
  parent::tearDown();
}