File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ use Astrotomic \Translatable \TranslatableServiceProvider ;
4+ use Illuminate \Contracts \Console \Kernel ;
35use Orchestra \Testbench \TestCase ;
4- use Astrotomic \Translatable \Test \Model \Country ;
56
67class TestsBase extends TestCase
78{
@@ -30,7 +31,7 @@ protected function refreshSeedData()
3031 protected function migrate ($ dbConnectionName )
3132 {
3233 $ migrationsPath = '../../../../tests/migrations ' ;
33- $ artisan = $ this ->app ->make (\ Illuminate \ Contracts \ Console \ Kernel::class);
34+ $ artisan = $ this ->app ->make (Kernel::class);
3435
3536 // Makes sure the migrations table is created
3637 $ artisan ->call ('migrate:fresh ' , [
@@ -39,16 +40,10 @@ protected function migrate($dbConnectionName)
3940 ]);
4041 }
4142
42- public function testRunningMigration ()
43- {
44- $ country = Country::find (1 );
45- $ this ->assertEquals ('gr ' , $ country ->code );
46- }
47-
4843 protected function getPackageProviders ($ app )
4944 {
5045 return [
51- \ Astrotomic \ Translatable \ TranslatableServiceProvider::class,
46+ TranslatableServiceProvider::class,
5247 ];
5348 }
5449
You can’t perform that action at this time.
0 commit comments