1
0
Fork 0
- removed dead code
Test:
-QA
Dieser Commit ist enthalten in:
DSB 2011-06-14 20:22:46 +00:00
Ursprung 28dcb4ecec
Commit 8b30f0b2dd
2 geänderte Dateien mit 1 neuen und 8 gelöschten Zeilen

Datei anzeigen

@ -231,13 +231,6 @@ class SqlController extends Zend_Controller_Action
//selection of db names given //selection of db names given
$databases = $this->_request->getParam('dbNames', array()); $databases = $this->_request->getParam('dbNames', array());
$databases = array_map('base64_decode', $databases); $databases = array_map('base64_decode', $databases);
} else {
//link for one db clicked
$databases = $this->_request->getParam('dbName', '');
if ($databases == '') {
return;
}
$databases = base64_decode($databases);
} }
$databaseModel = new Application_Model_Databases($this->_db); $databaseModel = new Application_Model_Databases($this->_db);
$dropResults = $databaseModel->dropDatabases($databases); $dropResults = $databaseModel->dropDatabases($databases);

Datei anzeigen

@ -75,7 +75,6 @@ class Msd_Application_Controller_SqlControllerTest
$expected = 'Die Datenbank wurde nicht erstellt.'; $expected = 'Die Datenbank wurde nicht erstellt.';
$this->assertQueryContentContains('div', $expected); $this->assertQueryContentContains('div', $expected);
// clean up // clean up
$db->query('DROP DATABASE IF EXISTS `testDb`'); $db->query('DROP DATABASE IF EXISTS `testDb`');
} }
@ -91,6 +90,7 @@ class Msd_Application_Controller_SqlControllerTest
$this->request->setMethod('POST'); $this->request->setMethod('POST');
$this->request->setPost('dbNames', array(base64_encode('testDb'))); $this->request->setPost('dbNames', array(base64_encode('testDb')));
$this->dispatch('sql/drop.database'); $this->dispatch('sql/drop.database');
// check action output // check action output
$this->assertQueryContentContains('h4', 'Aktion - Datenbank löschen:'); $this->assertQueryContentContains('h4', 'Aktion - Datenbank löschen:');
$this->assertQueryContentContains('td', 'testDb'); $this->assertQueryContentContains('td', 'testDb');