public function indexAction() { $this->view->config = Zend_Registry::get('config'); $this->view->available_version = USVN_Update::getUSVNAvailableVersion(); }
public function test_updateUSVNAvailableVersionNumber() { USVN_Update::updateUSVNAvailableVersionNumber(); $this->assertEquals("1.0.1", USVN_Update::getUSVNAvailableVersion()); $config = Zend_Registry::get('config'); $this->assertNotEquals(0, $config->update->lastcheckforupdate); }