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 212127f commit b01993a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 334 deletions.
160 changes: 0 additions & 160 deletions .github/workflows/queues.yml

This file was deleted.

169 changes: 0 additions & 169 deletions .github/workflows/tests.yml

This file was deleted.

12 changes: 7 additions & 5 deletions tests/Integration/Database/SchemaBuilderSchemaNameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ protected function defineEnvironment($app)
$this->app['config']->set('database.connections.with-prefix.prefix', 'example_');
}

#[DataProvider('schemaProvider')]
public function testCreate(Builder $schema)
#[DataProvider('connectionProvider')]
public function testCreate($connection)
{
$schema = Schema::connection($connection);

$schema->create('my_schema.table', function (Blueprint $table) {
$table->id();
});
Expand All @@ -46,11 +48,11 @@ public function testCreate(Builder $schema)
$this->assertFalse($schema->hasTable('table'));
}

public static function schemaProvider(): array
public static function connectionProvider(): array
{
return [
'without prefix' => [Schema::connection('without-prefix')],
'with prefix' => [Schema::connection('with-prefix')]
'without prefix' => ['without-prefix'],
'with prefix' => ['with-prefix'],
];
}
}

0 comments on commit b01993a

Please sign in to comment.