コード例 #1
0
ファイル: DefaultTest.php プロジェクト: emhoracek/Omeka
 public function testIsInstalled()
 {
     $installer = new Installer_Default($this->db);
     $this->assertFalse($installer->isInstalled());
     $this->dbAdapter->appendStatementToStack(Zend_Test_DbStatement::createSelectStatement(array('omeka_options')));
     $this->assertTrue($installer->isInstalled());
     $this->profilerHelper->assertDbQuery("SHOW TABLES LIKE 'omeka_options'");
 }
コード例 #2
0
ファイル: Test.php プロジェクト: lchen01/STEdwards
 public function install()
 {
     parent::install();
     self::addItem($this->getDb());
 }