mirror of
https://github.com/10h30/Test-Laravel-Eloquent-Basics.git
synced 2026-07-11 19:05:53 +09:00
Soft deletes task
This commit is contained in:
@@ -119,4 +119,13 @@ class EloquentTest extends TestCase
|
||||
$this->assertDatabaseCount('users', 1);
|
||||
}
|
||||
|
||||
public function test_soft_delete_projects()
|
||||
{
|
||||
$project = new Project();
|
||||
$project->name = 'Some name';
|
||||
$project->save();
|
||||
|
||||
$response = $this->delete('projects/' . $project->id);
|
||||
$response->assertSee('Some name');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user