Fix for enabling a default view from simpletest

  1. // requires a user with administer views, and must install views and views ui modules
  2.  
  3.     $this->drupalGet('comments/recent');
  4.     $this->pass('That should fail');
  5.     $this->drupalPost('admin/build/views/tools', array(), t("Clear Views' cache"));
  6.     $this->drupalGet('admin/build/views');
  7.     file_put_contents('/tmp/views_admin.html', $this->drupalGetContent());
  8.     $this->drupalGet('admin/build/views/enable/comments_recent');
  9.     $this->drupalGet('comments/recent');
  10.     $this->pass('That should wizzurk');
  11.     file_put_contents('/tmp/recent_comments.html', $this->drupalGetContent());

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.