Skip to content

Commit

Permalink
Fix Oracle tests running locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Nov 9, 2023
1 parent 5f8b93d commit 336477f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Support/Factory/OracleFactory.php
Original file line number Diff line number Diff line change
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 336477f

Please sign in to comment.