mirror of
https://github.com/10h30/Test-Laravel-Migrations.git
synced 2026-06-05 15:07:54 +09:00
Rename column
This commit is contained in:
@@ -104,4 +104,12 @@ class MigrationsTest extends TestCase
|
||||
DB::table('companies')->insert(['name' => 'First']);
|
||||
$this->assertDatabaseHas(Company::class, ['name' => 'First']);
|
||||
}
|
||||
|
||||
public function test_renamed_column()
|
||||
{
|
||||
Artisan::call('migrate:fresh', ['--path' => '/database/migrations/task9']);
|
||||
|
||||
Company::create(['name' => 'First']);
|
||||
$this->assertDatabaseHas(Company::class, ['name' => 'First']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user