Skip to content

Commit

Permalink
Merge pull request #2295 from MitrahSoft/XmlElemNew()_testcase
Browse files Browse the repository at this point in the history
Added a testcase in XmlElemNew() function.
  • Loading branch information
zspitzer authored Feb 1, 2024
2 parents e7ff7e6 + add7e66 commit 7e6fc13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/XmlElemNew.cfc
Original file line number Diff line number Diff line change
@@ -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();
});
});
}
}

0 comments on commit 7e6fc13

Please sign in to comment.