- Patch #505812 by Josh Waihi: remove database specific test.
parent
576a4cffed
commit
a05ec18996
|
@ -2485,9 +2485,6 @@ class DatabaseInvalidDataTestCase extends DatabaseTestCase {
|
||||||
$this->pass(t('The whole transaction is rolled back when a duplicate key insert occurs.'));
|
$this->pass(t('The whole transaction is rolled back when a duplicate key insert occurs.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 23000 means "Integrity constraint violation" according to ANSI SQL.
|
|
||||||
$this->assertEqual($e->errorInfo[0], '23000', t('Exception has proper SQLSTATE.'));
|
|
||||||
|
|
||||||
// Ensure the other values were not inserted.
|
// Ensure the other values were not inserted.
|
||||||
$record = db_select('test')
|
$record = db_select('test')
|
||||||
->fields('test', array('name', 'age'))
|
->fields('test', array('name', 'age'))
|
||||||
|
|
Loading…
Reference in New Issue