Skip to content

Commit 48b0411

Browse files
committed
fix tests for SQLite3
1 parent 8f82e4e commit 48b0411

1 file changed

Lines changed: 8 additions & 12 deletions

File tree

tests/system/Database/Live/ForgeTest.php

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,31 +32,27 @@ 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-
4035
$dbName = 'test_forge_database_exist';
4136

4237
$databaseCreateIfNotExists = $this->forge->createDatabase($dbName, true);
43-
$this->forge->dropDatabase($dbName);
38+
if ($this->db->DBDriver !== 'SQLite3')
39+
{
40+
$this->forge->dropDatabase($dbName);
41+
}
4442

4543
$this->assertTrue($databaseCreateIfNotExists);
4644
}
4745

4846
public function testCreateDatabaseIfNotExistsWithDb()
4947
{
50-
if ($this->db->DBDriver === 'SQLite3')
51-
{
52-
$this->markTestSkipped('SQLite3 skips create database and requires file path to drop database');
53-
}
54-
5548
$dbName = 'test_forge_database_exist';
5649

5750
$this->forge->createDatabase($dbName);
5851
$databaseExists = $this->forge->createDatabase($dbName, true);
59-
$this->forge->dropDatabase($dbName);
52+
if ($this->db->DBDriver !== 'SQLite3')
53+
{
54+
$this->forge->dropDatabase($dbName);
55+
}
6056

6157
$this->assertTrue($databaseExists);
6258
}

0 commit comments

Comments
 (0)