File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -708,7 +708,9 @@ public function it_does_not_run_unnecessary_sqls_when_assigning_new_permissions(
708
708
$ this ->testUser ->syncPermissions ($ this ->testUserPermission , $ permission2 );
709
709
DB ::disableQueryLog ();
710
710
711
- $ this ->assertSame (2 , count (DB ::getQueryLog ())); // avoid unnecessary sqls
711
+ $ necessaryQueriesCount = 2 ;
712
+
713
+ $ this ->assertCount ($ necessaryQueriesCount , DB ::getQueryLog ());
712
714
}
713
715
714
716
/** @test */
Original file line number Diff line number Diff line change @@ -393,7 +393,9 @@ public function it_does_not_run_unnecessary_sqls_when_assigning_new_roles()
393
393
$ this ->testUser ->syncRoles ($ this ->testUserRole , $ role2 );
394
394
DB ::disableQueryLog ();
395
395
396
- $ this ->assertSame (2 , count (DB ::getQueryLog ())); // avoid unnecessary sqls
396
+ $ necessaryQueriesCount = 2 ;
397
+
398
+ $ this ->assertCount ($ necessaryQueriesCount , DB ::getQueryLog ());
397
399
}
398
400
399
401
/** @test */
You can’t perform that action at this time.
0 commit comments