Skip to content

Commit 3a49002

Browse files
committed
remove migration test
1 parent 092a093 commit 3a49002

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/TestsBase.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3+
use Astrotomic\Translatable\TranslatableServiceProvider;
4+
use Illuminate\Contracts\Console\Kernel;
35
use Orchestra\Testbench\TestCase;
4-
use Astrotomic\Translatable\Test\Model\Country;
56

67
class 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

0 commit comments

Comments
 (0)