You are here

function ViewsLimitGroupingTests::tearDown in Views Grouping Row Limit 7

Overrides parent::tearDown().

Overrides DrupalWebTestCase::tearDown

File

tests/views_limit_grouping.test, line 127
Contains test for views_limit_grouping module.

Class

ViewsLimitGroupingTests
Functional test class for views_limit_grouping.

Code

function tearDown() {
  parent::tearDown();
  $types = array_keys($this->content_types);

  // Delete the nodes we created.
  $nids = db_query('SELECT nid FROM {node} WHERE type IN (:types)', array(
    ':types' => $types,
  ))
    ->fetchCol();
  node_delete_multiple($nids);

  // Delete the content types.
  foreach ($types as $type) {
    node_type_delete($type);
  }

  // Reset our variables.
  $this->content_types = $this->nodes = array();
}