'test_role']); $role->grantPermission('b') ->grantPermission('a') ->grantPermission('c') ->save(); $this->assertEquals($role->getPermissions(), ['a', 'b', 'c']); $role->revokePermission('b')->save(); $this->assertEquals($role->getPermissions(), ['a', 'c']); $role->grantPermission('b')->save(); $this->assertEquals($role->getPermissions(), ['a', 'b', 'c']); } }