Skip to content

Commit

Permalink
dump to 3.4.2-magnesium
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Feb 13, 2025
1 parent 8f3bbdc commit d315876
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion samples/custom_auth/MyWebModuleU.dfm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
object MyWebModule: TMyWebModule
OldCreateOrder = False
OnCreate = WebModuleCreate
OnDestroy = WebModuleDestroy
Actions = <>
Expand Down
2 changes: 0 additions & 2 deletions samples/custom_auth/MyWebModuleU.pas
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ procedure TMyWebModule.WebModuleCreate(Sender: TObject);
FMVC := TMVCEngine.Create(Self,
procedure(Config: TMVCConfig)
begin
// session timeout (0 means session cookie)
Config[TMVCConfigKey.SessionTimeout] := '0';
// default content-type
Config[TMVCConfigKey.DefaultContentType] := TMVCConstants.DEFAULT_CONTENT_TYPE;
// default content charset
Expand Down
2 changes: 1 addition & 1 deletion sources/dmvcframeworkbuildconsts.inc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const
DMVCFRAMEWORK_VERSION = '3.4.2-magnesium-rc5';
DMVCFRAMEWORK_VERSION = '3.4.2-magnesium';
12 changes: 7 additions & 5 deletions unittests/general/Several/ActiveRecordTestsU.pas
Original file line number Diff line number Diff line change
Expand Up @@ -752,32 +752,34 @@ procedure TTestActiveRecordBase.TestLifeCycle;
lCustomer.Insert;
Assert.AreEqual
('OnValidation|OnBeforeInsert|OnBeforeInsertOrUpdate|OnBeforeExecuteSQL|MapObjectToParams|OnAfterInsert|OnAfterInsertOrUpdate',
lCustomer.GetHistory);
lCustomer.GetHistory, 'step1');
lID := lCustomer.ID;
finally
lCustomer.Free;
end;

lCustomer := TMVCActiveRecord.GetByPK<TCustomerWithLF>(lID);
try
Assert.AreEqual('OnBeforeLoad|MapDatasetToObject|OnAfterLoad', lCustomer.GetHistory);
Assert.AreEqual('OnBeforeExecuteSQL|OnBeforeLoad|MapDatasetToObject|OnAfterLoad',
lCustomer.GetHistory, 'step2');
lCustomer.ClearHistory;
lCustomer.City := 'XXX';
lCustomer.Update;
Assert.AreEqual
('OnValidation|OnBeforeUpdate|OnBeforeInsertOrUpdate|OnBeforeExecuteSQL|MapObjectToParams|OnAfterUpdate|OnAfterInsertOrUpdate',
lCustomer.GetHistory);
lCustomer.GetHistory, 'step3');
finally
lCustomer.Free;
end;

lCustomer := TMVCActiveRecord.GetOneByWhere<TCustomerWithLF>('id = ?', [lID]);
try
Assert.AreEqual('OnBeforeLoad|MapDatasetToObject|OnAfterLoad', lCustomer.GetHistory);
Assert.AreEqual('OnBeforeLoad|MapDatasetToObject|OnAfterLoad',
lCustomer.GetHistory, 'step4');
lCustomer.ClearHistory;
lCustomer.Delete;
Assert.AreEqual('OnValidation|OnBeforeDelete|OnBeforeExecuteSQL|MapObjectToParams|OnAfterDelete',
lCustomer.GetHistory);
lCustomer.GetHistory, 'step5');
finally
lCustomer.Free;
end;
Expand Down

0 comments on commit d315876

Please sign in to comment.