Skip to content

Commit

Permalink
Merge pull request #2217 from MitrahSoft/getUserRoles()
Browse files Browse the repository at this point in the history
Added a testcase for getUserRoles() function
  • Loading branch information
zspitzer authored Sep 8, 2023
2 parents d85fb27 + a8723d3 commit df1835e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/functions/GetUserRoles.cfc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
component extends="org.lucee.cfml.test.LuceeTestCase" {

function run( testResults, testBox ) {
describe( title = "Testcase for getUserRoles() function", body = function() {
it( title = "Checking getUserRoles() function", body = function( currentSpec ) {
```
<cflogin>
<cfloginuser name = "test" password = "password" roles = "user,admin,editor">
</cflogin>
```
expect(getUserRoles()).toBe("user,admin,editor");
});
});
}
}

0 comments on commit df1835e

Please sign in to comment.