Skip to content

Commit

Permalink
Fix Oracle tests running locally (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 10, 2023
1 parent ad391f4 commit a9bfbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Support/Factory/OracleFactory.php
Expand Up @@ -40,7 +40,7 @@ static function (string $id) use (&$container, $config): object {
return match ($id) {
ConnectionInterface::class => new OracleConnection(
new OracleDriver(
'oci:dbname=localhost:1521;charset=AL32UTF8',
'oci:dbname=localhost:1521/XE;charset=AL32UTF8',
'system',
'root',
),
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function clearDatabase(ContainerInterface $container): void
$command = $db->createCommand();

foreach ($tables as $table) {
$command->dropTable($table)->execute();
$command->setSql('DROP TABLE "' . $table . '" CASCADE CONSTRAINTS')->execute();
}

$db->close();
Expand Down

0 comments on commit a9bfbf0

Please sign in to comment.