File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 27
27
[
28
28
'title ' => 'framework ' ,
29
29
'value ' => 'laravel ' ,
30
- ]
30
+ ],
31
31
]);
32
32
33
33
assertDatabaseCount ('products ' , 1 );
Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ class Product extends Model
11
11
12
12
protected $ table = 'products ' ;
13
13
protected $ fillable = ['title ' ];
14
- }
14
+ }
Original file line number Diff line number Diff line change 4
4
use Illuminate \Database \Schema \Blueprint ;
5
5
use Illuminate \Support \Facades \Schema ;
6
6
7
- return new class extends Migration
8
- {
7
+ return new class () extends Migration {
9
8
/**
10
9
* Run the migrations.
11
10
*
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
9
9
/**
10
10
* Load package service provider.
11
11
*
12
- * @param \Illuminate\Foundation\Application $app
12
+ * @param \Illuminate\Foundation\Application $app
13
+ *
13
14
* @return array
14
15
*/
15
16
protected function getPackageProviders ($ app )
@@ -20,22 +21,22 @@ protected function getPackageProviders($app)
20
21
/**
21
22
* Define environment setup.
22
23
*
23
- * @param \Illuminate\Foundation\Application $app
24
+ * @param \Illuminate\Foundation\Application $app
24
25
*/
25
26
protected function getEnvironmentSetUp ($ app )
26
27
{
27
28
// Setup default database to use sqlite :memory:
28
29
$ app ['config ' ]->set ('database.default ' , 'testing ' );
29
30
$ app ['config ' ]->set ('database.connections.testing ' , [
30
- 'driver ' => 'sqlite ' ,
31
+ 'driver ' => 'sqlite ' ,
31
32
'database ' => ':memory: ' ,
32
- 'prefix ' => '' ,
33
+ 'prefix ' => '' ,
33
34
]);
34
35
}
35
36
36
37
protected function setUp (): void
37
38
{
38
39
parent ::setUp ();
39
- $ this ->loadMigrationsFrom (__DIR__ . '/SetUp/migrations ' );
40
+ $ this ->loadMigrationsFrom (__DIR__ . '/SetUp/migrations ' );
40
41
}
41
42
}
You can’t perform that action at this time.
0 commit comments