Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
hafezdivandari committed Feb 8, 2024
1 parent b01993a commit 5058860
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/Integration/Database/SchemaBuilderSchemaNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Illuminate\Tests\Integration\Database;

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use PHPUnit\Framework\Attributes\DataProvider;
Expand All @@ -26,11 +25,13 @@ protected function destroyDatabaseMigrations()

protected function defineEnvironment($app)
{
$this->app['config']->set(
'database.connections.without-prefix', $this->app['config']->get('database.connections.'.$this->driver)
parent::defineEnvironment($app);

$app['config']->set(
'database.connections.without-prefix', $app['config']->get('database.connections.'.$this->driver)
);
$this->app['config']->set('database.connections.with-prefix', $this->app['config']->get('database.connections.without-prefix'));
$this->app['config']->set('database.connections.with-prefix.prefix', 'example_');
$app['config']->set('database.connections.with-prefix', $app['config']->get('database.connections.without-prefix'));
$app['config']->set('database.connections.with-prefix.prefix', 'example_');
}

#[DataProvider('connectionProvider')]
Expand Down

0 comments on commit 5058860

Please sign in to comment.