Commit da36ee2 1 parent d57a6c9 commit da36ee2 Copy full SHA for da36ee2
File tree 1 file changed +1
-23
lines changed
1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 9
9
class TestCase extends TestBenchTestCase
10
10
{
11
11
/**
12
- * Sets the env data to interact as env file values
13
- *
14
- * @param [type] $app
15
- * @return void
12
+ * Load the package service provider.
16
13
*/
17
- protected function getEnvironmentSetUp ($ app )
18
- {
19
- $ app ['config ' ]->set ('database.default ' , 'testing ' );
20
-
21
- $ app ['config ' ]->set ('database.connection.testing ' , [
22
- 'driver ' => 'sqlite ' ,
23
- 'database ' => ':memory: '
24
- ]);
25
- }
26
-
27
- // set providers to test the class
28
14
protected function getPackageProviders ($ app ): array
29
15
{
30
16
return [
31
17
Provider::class,
32
18
];
33
19
}
34
-
35
- // With this method I can use the facade instead of all class namespace
36
- protected function getPackageAliases ($ app ): array
37
- {
38
- return [
39
- 'FirstPackage ' => Facade::class
40
- ];
41
- }
42
20
}
You can’t perform that action at this time.
0 commit comments