File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 44
55use Bonfire \Users \User ;
66use CodeIgniter \Shield \Authorization \Groups ;
7+ use CodeIgniter \Shield \Entities \Group ;
78use 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 }
You can’t perform that action at this time.
0 commit comments