1
0
Fork 0
- added test
Dieser Commit ist enthalten in:
DSB 2011-06-14 21:09:19 +00:00
Ursprung d5ed76b0dc
Commit 211ba95392

Datei anzeigen

@ -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);
}
} }