Skip to content

Commit

Permalink
Merge branch 'development' of github.com:coldbox-modules/cborm into d…
Browse files Browse the repository at this point in the history
…evelopment
  • Loading branch information
lmajano committed Jun 24, 2024
2 parents 6de27e8 + 51b3a49 commit aabf002
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test-harness/tests/specs/BaseORMServiceTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
function testClear(){
test = entityLoad( "User" );
stats = ormservice.getSessionStatistics();
//debug( stats );
// debug( stats );

ormservice.clear();

Expand Down Expand Up @@ -154,15 +154,15 @@

// Test with arguments.
user = ormService.new( entityName = "User", properties = { firstName : "luis", lastName : "majano" } );
//debug( user );
// debug( user );
assertEquals( "luis", user.getFirstName() );
assertEquals( "majano", user.getLastName() );
}

function testNewWithProperties(){
// Test Porperties
user = ormService.new( "User", { firstName : "pio", lastName : "majano" } );
//debug( user );
// debug( user );
assertEquals( "pio", user.getFirstName() );
assertEquals( "majano", user.getLastName() );
}
Expand Down Expand Up @@ -245,7 +245,7 @@
test.setDescription( "dirty dirty" );

var properties = ormService.getDirtyPropertyNames( test );
//debug( properties );
// debug( properties );
expect( properties ).toHaveLength( 2 );
}

Expand Down Expand Up @@ -298,7 +298,7 @@
ormCloseSession();
}
var test = entityLoad( "Category", { category : "unittest" } );
//debug( test );
// debug( test );
ormservice.delete( entity = test[ 1 ], transactional = false );
ormFlush();
ormservice.clear();
Expand Down Expand Up @@ -616,7 +616,7 @@

function testExecuteQuery(){
var test = ormservice.executeQuery( query = "from Category" );
//debug( test );
// debug( test );
assertTrue( isArray( test ) );
assertTrue( arrayLen( test ) );

Expand Down

0 comments on commit aabf002

Please sign in to comment.