File tree Expand file tree Collapse file tree
tests/system/Database/Live Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments