Task 5 - column or table exists

This commit is contained in:
PovilasKorop
2021-11-09 10:37:08 +02:00
parent 32a21d2c05
commit 16a72f52c2
5 changed files with 122 additions and 1 deletions
+8 -1
View File
@@ -40,7 +40,6 @@ class MigrationsTest extends TestCase
}
$this->assertEquals(3, $fieldNumber);
}
public function test_soft_deletes()
@@ -65,4 +64,12 @@ class MigrationsTest extends TestCase
Product::factory()->create();
$category->delete();
}
public function test_repeating_column_table()
{
// We just test if the migration succeeds or throws an exception
$this->expectNotToPerformAssertions();
Artisan::call('migrate:fresh', ['--path' => '/database/migrations/task5']);
}
}