Permalink
Browse files

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.
  • Loading branch information...
AD7six committed Jan 23, 2015
1 parent 5e89e89 commit f9ba950ad415c67b5b3596dc4d4962f3f7dca284
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/Test/Case/Model/Datasource/Session/DatabaseSessionTest.php
@@ -198,6 +198,11 @@ public function testGc() {
* @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(

0 comments on commit f9ba950

Please sign in to comment.