1
0
Fork 0

Added fail test: create a database

Dieser Commit ist enthalten in:
DSB 2011-06-14 20:06:41 +00:00
Ursprung cc1e1f30b6
Commit 3794a89f54
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -68,6 +68,14 @@ class Msd_Application_Controller_SqlControllerTest
$this->dispatch('sql/create.database');
$expected = 'Die Datenbank \'testDb\' wurde erfolgreich erstellt.';
$this->assertQueryContentContains('div', $expected);
// retry to create the same database - should fail ;)
$this->request->setPost('newDbInfo', $newDbInfo);
$this->dispatch('sql/create.database');
$expected = 'Die Datenbank wurde nicht erstellt.';
$this->assertQueryContentContains('div', $expected);
// clean up
$db->query('DROP DATABASE IF EXISTS `testDb`');
}