Skip Sqlite

Sqlite will accept an insert with duplicate primary keys and silently
drop the query. There is no exception, or indication that the insert
failed.
This commit is contained in:
AD7six 2015-01-23 08:47:05 +00:00
parent 5e89e893f2
commit f9ba950ad4

View file

@ -198,6 +198,11 @@ class DatabaseSessionTest extends CakeTestCase {
* @return void
*/
public function testConcurrentInsert() {
$this->skipIf(
$this->db instanceof Sqlite,
'Sqlite does not throw exceptions when attempting to insert a duplicate primary key'
);
ClassRegistry::removeObject('Session');
$mockedModel = $this->getMockForModel(