function ContentAccessTestCase::tearDown in Content Access 5
Clear up work that is done after each test. Users get deleted automatically, so we just have to delete the content type. (nodes get deleted automatically, too)
Overrides DrupalTestCase::tearDown
File
- tests/
content_access_test_help.php, line 46 - Helper class with auxiliary functions for content access module tests
Class
- ContentAccessTestCase
- @file Helper class with auxiliary functions for content access module tests
Code
function tearDown() {
// Login admin and delete test content type
$this
->drupalGet(url('logout'));
$this
->drupalLoginUser($this->admin_user);
$this
->drupalPostRequest('admin/content/types/' . $this->url_content_type_name . '/delete', array(), 'op');
parent::tearDown();
}