public function ViewsTermMergeWebTestCase::setUp in Term Merge 7
SetUp method.
Overrides TermMergeWebTestCase::setUp
File
- ./
term_merge.test, line 1519 - Test the Term Merge module.
Class
- ViewsTermMergeWebTestCase
- Test the integration between Term Merge module and Views module.
Code
public function setUp() {
$modules = $this
->normalizeSetUpArguments(func_get_args());
$modules[] = 'views';
parent::setUp($modules);
// Additionally we create a view.
$view = views_new_view();
$view->name = 'term_merge_view_test';
$view->description = 'Test view to test Term Merge module.';
$view->tag = '';
$view->base_table = 'node';
$view->api_version = '3.0';
$view->core = 7;
$display_id = 'default';
$view
->set_display($display_id);
views_save_view($view);
$this->view =& $view;
}