mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
5e89e893f2
commit
f9ba950ad4
1 changed files with 5 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue