Skip to content

Commit

Permalink
Run Sqlite tests in memory (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 21, 2023
1 parent 3f5244c commit 1ceda56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Support/Factory/SqLiteFactory.php
Expand Up @@ -38,9 +38,7 @@ public static function createContainer(?ContainerConfig $config = null): Contain
static function (string $id) use (&$container, $config): object {
return match ($id) {
ConnectionInterface::class => new SqLiteConnection(
new SqLiteDriver(
'sqlite:' . dirname(__DIR__, 2) . '/runtime/yiitest.sq3'
),
new SqLiteDriver('sqlite::memory:'),
new SchemaCache(new MemorySimpleCache())
),
SqLiteConnection::class => $container->get(ConnectionInterface::class),
Expand Down

0 comments on commit 1ceda56

Please sign in to comment.