Skip to content

Commit 0e458e2

Browse files
committed
wip
1 parent 01fda3a commit 0e458e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Commands/CreateSchemaCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function handle(): int
1818
{
1919
$connection = Config::get('laravel-event-logs.connection');
2020

21-
if (empty($connection) || ! is_string($connection)) {
21+
if (! is_string($connection) || $connection === '') {
2222
$this->error('Event logs connection is not configured');
2323

2424
return self::FAILURE;

tests/Unit/Commands/DropSchemaCommandTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ protected function schemaExists(string $connection, string $schema): bool
3939
}
4040
};
4141
$command->setLaravel($this->app);
42+
$command->setOutput(new OutputStyle(new ArrayInput([]), new BufferedOutput));
4243

4344
$result = $command->handle();
4445

@@ -74,6 +75,7 @@ protected function schemaExists(string $connection, string $schema): bool
7475
}
7576
};
7677
$command->setLaravel($this->app);
78+
$command->setOutput(new OutputStyle(new ArrayInput([]), new BufferedOutput));
7779

7880
$result = $command->handle();
7981

0 commit comments

Comments
 (0)