Ejemplo n.º 1
0
 function tearDown()
 {
     while (sizeof($this->_cleanupGroups) > 0) {
         $gid = array_pop($this->_cleanupGroups);
         node_delete($gid);
     }
     parent::tearDown();
 }
Ejemplo n.º 2
0
 function tearDown()
 {
     while (sizeof($this->_cleanupGroups) > 0) {
         $gid = array_pop($this->_cleanupGroups);
         node_delete($gid);
     }
     include_once './' . drupal_get_path('module', 'node') . '/content_types.inc';
     while (sizeof($this->_cleanupNodeTypes) > 0) {
         $name = array_pop($this->_cleanupNodeTypes);
         node_type_delete_confirm_submit(0, array('name' => $name, 'type' => $name));
     }
     parent::tearDown();
 }