Skip to content

Commit 366c240

Browse files
committed
fix tests for SQLite3
1 parent 73aca90 commit 366c240

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/system/Database/Live/ForgeTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function testCreateDatabase()
3232

3333
public function testCreateDatabaseIfNotExists()
3434
{
35+
if ($this->db->DBDriver === 'SQLite3')
36+
{
37+
$this->markTestSkipped('SQLite3 skips create database and requires file path to drop database');
38+
}
39+
3540
$dbName = 'test_forge_database_exist';
3641

3742
$databaseCreateIfNotExists = $this->forge->createDatabase($dbName, true);
@@ -42,6 +47,11 @@ public function testCreateDatabaseIfNotExists()
4247

4348
public function testCreateDatabaseIfNotExistsWithDb()
4449
{
50+
if ($this->db->DBDriver === 'SQLite3')
51+
{
52+
$this->markTestSkipped('SQLite3 skips create database and requires file path to drop database');
53+
}
54+
4555
$dbName = 'test_forge_database_exist';
4656

4757
$this->forge->createDatabase($dbName);

0 commit comments

Comments
 (0)