summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/views_argument_default.test8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/views_argument_default.test b/tests/views_argument_default.test
index 5c04701..9a52731 100644
--- a/tests/views_argument_default.test
+++ b/tests/views_argument_default.test
@@ -25,10 +25,12 @@ class ViewsArgumentDefaultTest extends ViewsSqlTest {
$view = $this->view_argument_default_fixed();
$view->set_display('default');
- $view->execute_display();
- $view->destroy();
+ $view->pre_execute();
+ $view->init_handlers();
+
+ $this->assertEqual($view->argument['null']->get_default_argument(), $this->random, 'Fixed argument should be used by default.');
- $this->assertEqual($view->args[0], $this->random, 'Fixed argument should be used by default.');
+ $view->destroy();
// Take sure that a normal argument provided is used
$view = $this->view_argument_default_fixed();