From add7e666a9685fe1db273738827e55ee80facd56 Mon Sep 17 00:00:00 2001 From: cfmitrah Date: Wed, 17 Jan 2024 20:01:37 +0530 Subject: [PATCH] Added a testcase in XmlElemNew() function. --- test/XmlElemNew.cfc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/XmlElemNew.cfc diff --git a/test/XmlElemNew.cfc b/test/XmlElemNew.cfc new file mode 100644 index 0000000000..0c96eb5863 --- /dev/null +++ b/test/XmlElemNew.cfc @@ -0,0 +1,12 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" { + function run( testResults , testBox ) { + describe( title = "Testcase for XmlElemNew() function", body = function() { + it( title = "Checking XmlElemNew() function", body = function( currentSpec ) { + xml_document = XmlNew(); + xmlelem = XmlElemNew(xml_document,"Lucee"); + expect(isxmldoc(xml_document)).toBeTrue(); + expect(IsXmlElem(xmlelem)).toBeTrue(); + }); + }); + } +} \ No newline at end of file