You are here

public function trash_flag_trashytests_base::setUp in Trash Flag 7

One using of this function is to enable the module used for testing, any dependencies or anything else that might be universal for all tests

Overrides DrupalWebTestCase::setUp

File

./trash_flag.test, line 13
Provides a base unit test class.

Class

trash_flag_trashytests_base
@file Provides a base unit test class.

Code

public function setUp() {
  parent::setUp(array(
    'node',
    'flag',
    'trash_flag',
  ));
  $types = node_type_get_names();
  if (empty($types['article'])) {
    $this
      ->drupalCreateContentType(array(
      'type' => 'article',
      'name' => 'Article',
    ));
  }
}