/**
  * shared setUp method
  * require a test user, and
  * create a view to test with
  */
 public function setUp()
 {
     parent::setUp();
     $this->testuserid = $this->create_test_user();
     // set the owner of the view to the test user we created
     $this->fields['owner'] = array($this->testuserid, $this->testuserid);
     $this->view = View::create(array('title' => $this->fields['title'][0], 'description' => $this->fields['description'][0]), $this->testuserid);
     $this->viewid = $this->view->get('id');
 }
 /**
  * Shared setUp method.
  * Requires a test user, and create artefacts to test with.
  */
 public function setUp()
 {
     parent::setUp();
     $this->testuserid = $this->create_test_user();
 }