@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function migrate() |
| 47 | 47 | { |
| 48 | - $this->loadLaravelMigrations(['--database' => 'testbench']); |
|
| 49 | - $this->artisan('migrate', ['--database' => 'testbench']); |
|
| 48 | + $this->loadLaravelMigrations([ '--database' => 'testbench' ]); |
|
| 49 | + $this->artisan('migrate', [ '--database' => 'testbench' ]); |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | public function removeMigrationFiles() |
| 85 | 85 | { |
| 86 | 86 | collect(glob(database_path('migrations/*.php'))) |
| 87 | - ->each(function ($path) { |
|
| 87 | + ->each(function($path) { |
|
| 88 | 88 | $this->removeIfExist($path); |
| 89 | 89 | }); |
| 90 | 90 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | public function removeSeederFiles() |
| 96 | 96 | { |
| 97 | 97 | collect(glob(database_path('seeds/*.php'))) |
| 98 | - ->each(function ($path) { |
|
| 98 | + ->each(function($path) { |
|
| 99 | 99 | $this->removeIfExist($path); |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -139,8 +139,8 @@ discard block |
||
| 139 | 139 | protected function getEnvironmentSetUp($app) |
| 140 | 140 | { |
| 141 | 141 | // Setup default database to use sqlite :memory: |
| 142 | - $app['config']->set('database.default', 'testbench'); |
|
| 143 | - $app['config']->set('database.connections.testbench', [ |
|
| 142 | + $app[ 'config' ]->set('database.default', 'testbench'); |
|
| 143 | + $app[ 'config' ]->set('database.connections.testbench', [ |
|
| 144 | 144 | 'driver' => 'sqlite', |
| 145 | 145 | 'database' => ':memory:', |
| 146 | 146 | 'prefix' => '', |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | protected function assertTableHasColumns($table, $columns) |
| 171 | 171 | { |
| 172 | - collect($columns)->each(function ($column) use ($table) { |
|
| 172 | + collect($columns)->each(function($column) use ($table) { |
|
| 173 | 173 | $this->assertTrue(Schema::hasColumn($table, $column)); |
| 174 | 174 | }); |
| 175 | 175 | } |