Skip to content

Commit

Permalink
Remove log assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Aug 31, 2024
1 parent 7ab3565 commit 8bc0c96
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/Feature/Commands/ImportLdapUsersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Foundation\Auth\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Log;
use LdapRecord\Laravel\Auth\AuthenticatesWithLdap;
use LdapRecord\Laravel\Auth\HasLdapUser;
use LdapRecord\Laravel\Auth\LdapAuthenticatable;
Expand Down Expand Up @@ -72,8 +71,6 @@ public function test_users_are_imported_into_the_database()
]),
]);

Log::shouldReceive('log')->times(6);

$repo = m::mock(LdapUserRepository::class, function ($repo) use ($users) {
$query = m::mock(Builder::class);
$query->shouldReceive('paginate')->once()->andReturn($users);
Expand Down Expand Up @@ -147,8 +144,6 @@ public function test_users_are_imported_into_the_database_via_chunk()
]),
]);

Log::shouldReceive('log')->times(6);

$repo = m::mock(LdapUserRepository::class, function ($repo) use ($users) {
$query = m::mock(Builder::class);

Expand Down Expand Up @@ -190,8 +185,6 @@ public function test_users_are_not_imported_into_the_database_via_chunk_when_min
]),
]);

Log::shouldReceive('log')->times(6);

$repo = m::mock(LdapUserRepository::class, function ($repo) use ($users) {
$query = m::mock(Builder::class);

Expand Down

0 comments on commit 8bc0c96

Please sign in to comment.