mirror of
https://github.com/10h30/Test-Laravel-Eloquent-Basics.git
synced 2026-07-11 10:55:52 +09:00
Task 10 - scopes
This commit is contained in:
@@ -128,4 +128,12 @@ class EloquentTest extends TestCase
|
||||
$response = $this->delete('projects/' . $project->id);
|
||||
$response->assertSee('Some name');
|
||||
}
|
||||
|
||||
public function test_active_users()
|
||||
{
|
||||
$user = User::factory()->create(['email_verified_at' => NULL]);
|
||||
|
||||
$response = $this->get('users/active');
|
||||
$response->assertDontSee($user->name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user