Skip to content

Commit

Permalink
updates to tests for new null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Dec 9, 2024
1 parent a1e305d commit d29a3a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions tests/specs/cache/providers/CacheBoxProviderTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,22 @@
}

function testsetQuiet(){
testVal = { name : "luis", age : 32 };
var testVal = { name : "luis", age : 32 };
cache.setQuiet( "test", testVal, 20 );

assertEquals( testVal, cache.get( "test" ) );
}

function testSetMulti(){
test = { key1 : { name : "luis", age : 2 }, key2 : "hello" };
var test = { key1 : { name : "luis", age : 2 }, key2 : "hello" };
cache.setMulti( test );

assertEquals( test.key1, cache.get( "key1" ) );
assertEquals( test.key2, cache.get( "key2" ) );
}

function testClearMulti(){
test = { key1 : { name : "luis", age : 2 }, key2 : "hello" };
var test = { key1 : { name : "luis", age : 2 }, key2 : "hello" };
cache.setMulti( test );

cache.clearMulti( "key1,key2" );
Expand All @@ -236,7 +236,7 @@
}

function testClearQuiet(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand All @@ -248,7 +248,7 @@
}

function testClear(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand All @@ -260,7 +260,7 @@
}

function testClearAll(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand All @@ -273,7 +273,7 @@
}

function testGetSize(){
test = {
var test = {
key1 : now(),
key2 : { age : "32", name : "Lui Mahoney" }
};
Expand All @@ -284,7 +284,7 @@
}

function testExpireObjectAndIsExpired(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand All @@ -298,7 +298,7 @@
}

function testExpireByKeySnippet(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand All @@ -312,7 +312,7 @@
}

function testExpireAll(){
test = {
var test = {
key1 : now(),
key2 : { name : "Pio", age : "32", cool : "beyond belief" }
};
Expand Down
2 changes: 1 addition & 1 deletion tests/specs/ioc/InjectorTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// init injector
injector.init( { scopeRegistration : { enabled : false } } );

mockLogger = createStub().$( "canDebug", false ).$( "error" );
mockLogger = createStub().$( "canDebug", false ).$( "canError", true ).$( "error" );
util = createMock( "coldbox.system.core.util.Util" )
.$( "getInheritedMetaData" )
.$results( { path : "path.to.object" } );
Expand Down

0 comments on commit d29a3a5

Please sign in to comment.