Skip to content

Commit de91e51

Browse files
committed
Accept test updates suggested by Rector
1 parent 2c877b8 commit de91e51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Groups/GroupsTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Bonfire\Users\User;
66
use CodeIgniter\Shield\Authorization\Groups;
7+
use CodeIgniter\Shield\Entities\Group;
78
use Tests\Support\TestCase;
89

910
/**
@@ -70,6 +71,7 @@ public function testCanSaveGroupPermissions()
7071
{
7172
$groups = new Groups();
7273
$group = $groups->info('admin');
74+
$this->assertInstanceof(Group::class, $group);
7375

7476
$this->assertTrue($group->can('beta.access'));
7577

@@ -85,9 +87,11 @@ public function testCanSaveGroupPermissions()
8587

8688
// Page title
8789
$result->assertRedirect();
90+
$this->assertInstanceof(Group::class, $group);
8891

8992
// Refresh the group
9093
$group = $groups->info('admin');
94+
$this->assertInstanceof(Group::class, $group);
9195

9296
$this->assertFalse($group->can('beta.access'));
9397
}

0 commit comments

Comments
 (0)