File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace KitLoong \MigrationsGenerator \Tests ;
4
4
5
+ use Illuminate \Support \Facades \DB ;
5
6
use KitLoong \MigrationsGenerator \Enum \Migrations \Method \SchemaBuilder ;
6
7
use KitLoong \MigrationsGenerator \Migration \Blueprint \SchemaBlueprint ;
7
8
use KitLoong \MigrationsGenerator \Migration \Blueprint \TableBlueprint ;
8
9
use KitLoong \MigrationsGenerator \Migration \Enum \MigrationFileType ;
9
10
use KitLoong \MigrationsGenerator \Migration \Writer \MigrationWriter ;
11
+ use KitLoong \MigrationsGenerator \Setting ;
10
12
use KitLoong \MigrationsGenerator \Support \TableName ;
11
13
use Mockery \MockInterface ;
12
14
@@ -17,6 +19,9 @@ class MigrationWriterTest extends TestCase
17
19
*/
18
20
public function testWrite ()
19
21
{
22
+ $ setting = app (Setting::class);
23
+ $ setting ->setDefaultConnection (DB ::getDefaultConnection ());
24
+
20
25
$ this ->mock (TableName::class, function (MockInterface $ mock ) {
21
26
$ mock ->shouldReceive ('stripPrefix ' )
22
27
->andReturn ('test ' );
You can’t perform that action at this time.
0 commit comments