From 38a2f4e45936abc4233f5cbbb4a5a1f9f42850ab Mon Sep 17 00:00:00 2001 From: michaeloffner Date: Tue, 10 Dec 2024 19:56:56 +0100 Subject: [PATCH] improve test case --- test/datasource/MongoDB.cfc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/datasource/MongoDB.cfc b/test/datasource/MongoDB.cfc index 15dcaa2d58..6b52cdb197 100644 --- a/test/datasource/MongoDB.cfc +++ b/test/datasource/MongoDB.cfc @@ -117,9 +117,10 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="mongodb" { public void function testMongoDBID() skip="isNotSupported" { if(isNotSupported()) return; var id = MongoDBID(); - $assert.key(id,"date"); - $assert.key(id,"timestamp"); - $assert.key(id,"id"); + assertEquals(structKeyExists(id,"date"),true); + assertEquals(structKeyExists(id,"timestamp"),true); + assertEquals(structKeyExists(id,"id"),true); + var dateSeed = now().add("d",-1) id = MongoDBID(dateSeed);