Наследование: extends lithium\data\Model
 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;
 }
Пример #2
0
 public function tearDown()
 {
     Connections::remove('mockconn');
     MockDatabasePost::reset();
     MockDatabaseComment::reset();
     MockDatabaseTagging::reset();
     MockDatabasePostRevision::reset();
     MockGallery::reset();
     MockImage::reset();
     MockImageTag::reset();
     MockTag::reset();
 }