Skip to content

Commit

Permalink
LDEV-4633 - extend testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Sep 15, 2023
1 parent f06ccdc commit c80f0b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tickets/LDEV4633.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,16 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="query" {
expect(metadata.properties.len()).toBe(1, "We should have one property in the metatdata");

});

describe( title = "Testcase testing caching of metadata", body = function() {
var q=new Query();
var md=getMetadata(q);
md.susi="Sorglos";

expect(structKeyExists(md,"susi")).toBeTrue();
// getting the metadata again, should still have the same cached data
expect(structKeyExists(getMetadata(q),"susi")).toBeTrue();

});
}
}

0 comments on commit c80f0b2

Please sign in to comment.