public function setUp()
 {
     MockDatabasePost::config();
     MockDatabaseComment::config();
     MockDatabaseTagging::config();
     MockDatabasePostRevision::config();
     $this->db = new MockDatabase();
     MockDatabasePost::$connection = $this->db;
     MockDatabaseComment::$connection = $this->db;
     MockDatabaseTagging::$connection = $this->db;
     MockDatabasePostRevision::$connection = $this->db;
 }
Example #2
0
 public function setUp()
 {
     $this->_db = new MockDatabase();
     Connections::add('mockconn', array('object' => $this->_db));
     $config = array('meta' => array('connection' => 'mockconn'));
     MockDatabasePost::config($config);
     MockDatabaseComment::config($config);
     MockDatabaseTagging::config($config);
     MockDatabasePostRevision::config($config);
     MockGallery::config($config);
     MockImage::config($config);
     MockImageTag::config($config);
     MockTag::config($config);
 }