public function testDowngrades() { $front = $this->getFrontController(); $modulePath = $front->getModuleDirectory('faqs'); $schemaManager = new Capacitor_Db_Schema_Manager($modulePath . '/schemas', $this->_application->getBootstrap()->getResource('db'), 'faqs'); $result = $schemaManager->downTo(0, false); $this->assertContains($result, array(Capacitor_Db_Schema_Manager::RESULT_OK, Capacitor_Db_Schema_Manager::RESULT_AT_CURRENT_VERSION)); }