From a8723d32c517d28dffde804d883f1f7f522d5d90 Mon Sep 17 00:00:00 2001 From: CF Mitrah Date: Fri, 25 Aug 2023 13:24:58 +0530 Subject: [PATCH] Added a testcase for getUserRoles() function --- test/functions/GetUserRoles.cfc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/functions/GetUserRoles.cfc diff --git a/test/functions/GetUserRoles.cfc b/test/functions/GetUserRoles.cfc new file mode 100644 index 0000000000..a302abb3c1 --- /dev/null +++ b/test/functions/GetUserRoles.cfc @@ -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 ) { + ``` + + + + ``` + expect(getUserRoles()).toBe("user,admin,editor"); + }); + }); + } +} \ No newline at end of file