public function setUp()
 {
     $this->_db = new MockDatabase();
     Connections::add('mockconn', array('object' => $this->_db));
     MockGallery::config(array('meta' => array('connection' => 'mockconn')));
     MockImage::config(array('meta' => array('connection' => 'mockconn')));
 }
Exemple #2
0
 public function setUp()
 {
     $this->_db = new MockDatabase();
     Connections::add('mockconn', array('object' => $this->_db));
     $config = array('meta' => array('connection' => 'mockconn'));
     MockQueryPost::config($config);
     MockQueryComment::config($config);
     MockGallery::config($config);
     MockImage::config($config);
     MockImageTag::config($config);
     MockTag::config($config);
 }