From fb2763a697e5036fe3c54f6f23fd72b5d0e87ade Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 2 Dec 2024 12:51:09 +0200 Subject: [PATCH] updated autodate test interceptors --- core/field_autodate_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/field_autodate_test.go b/core/field_autodate_test.go index 689dc198..8861ae6e 100644 --- a/core/field_autodate_test.go +++ b/core/field_autodate_test.go @@ -264,7 +264,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "create with zero value (disabled onCreate)", - core.InterceptorActionCreate, + core.InterceptorActionCreateExecute, &core.AutodateField{Name: "test", OnCreate: false, OnUpdate: true}, func() *core.Record { return core.NewRecord(collection) @@ -273,7 +273,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "create with zero value", - core.InterceptorActionCreate, + core.InterceptorActionCreateExecute, &core.AutodateField{Name: "test", OnCreate: true, OnUpdate: true}, func() *core.Record { return core.NewRecord(collection) @@ -282,7 +282,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "create with non-zero value", - core.InterceptorActionCreate, + core.InterceptorActionCreateExecute, &core.AutodateField{Name: "test", OnCreate: true, OnUpdate: true}, func() *core.Record { record := core.NewRecord(collection) @@ -293,7 +293,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "update with zero value (disabled onUpdate)", - core.InterceptorActionUpdate, + core.InterceptorActionUpdateExecute, &core.AutodateField{Name: "test", OnCreate: true, OnUpdate: false}, func() *core.Record { return core.NewRecord(collection) @@ -302,7 +302,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "update with zero value", - core.InterceptorActionUpdate, + core.InterceptorActionUpdateExecute, &core.AutodateField{Name: "test", OnCreate: true, OnUpdate: true}, func() *core.Record { return core.NewRecord(collection) @@ -311,7 +311,7 @@ func TestAutodateFieldIntercept(t *testing.T) { }, { "update with non-zero value", - core.InterceptorActionUpdate, + core.InterceptorActionUpdateExecute, &core.AutodateField{Name: "test", OnCreate: true, OnUpdate: true}, func() *core.Record { record := core.NewRecord(collection)