SQLController:
- added test
Dieser Commit ist enthalten in:
Ursprung
d5ed76b0dc
Commit
211ba95392
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
|
@ -98,4 +98,15 @@ class Msd_Application_Controller_SqlControllerTest
|
||||||
// look for the "ok" icon
|
// look for the "ok" icon
|
||||||
$this->assertQueryContentContains('td', '/css/msd/icons/16x16/Apply.png');
|
$this->assertQueryContentContains('td', '/css/msd/icons/16x16/Apply.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testShowDatabasesCanFallbackOnInvalidActualDatabase()
|
||||||
|
{
|
||||||
|
$this->loginUser();
|
||||||
|
$config = Msd_Configuration::getInstance();
|
||||||
|
$config->set('dynamic.dbActual', 'IDontExist');
|
||||||
|
$this->dispatch('sql/show.databases');
|
||||||
|
// make sure we fall back to first db "information_schema"
|
||||||
|
$expected = '<option value="aW5mb3JtYXRpb25fc2NoZW1h" selected="selected">information_schema</option>';
|
||||||
|
$this->assertQueryContentContains('select', $expected);
|
||||||
|
}
|
||||||
}
|
}
|
Laden …
In neuem Issue referenzieren