Skip to content

Commit

Permalink
PRESIDECMS-2980 fix args in getTemplate before updateScheduledFields …
Browse files Browse the repository at this point in the history
…in emailTemplateServiceTests
  • Loading branch information
Pixl8RusselCole committed Dec 9, 2024
1 parent 31f47a2 commit 6f246d4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/unit/api/email/EmailTemplateServiceTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_sent = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate").$args( template=template, id=templateId , isDraft=true ).$results( templateId );
service.$( "_getNow", nowish );

Expand All @@ -215,7 +215,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down Expand Up @@ -245,7 +245,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -272,7 +272,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = DateAdd( "ww", -1, nowish )
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -299,7 +299,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = nowish
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -325,7 +325,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = DateAdd( "ww", 4, nowish )
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down Expand Up @@ -353,7 +353,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = nextSendDate
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -379,7 +379,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = DateAdd( "ww", 4, nowish )
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -406,7 +406,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -433,7 +433,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down Expand Up @@ -461,7 +461,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down Expand Up @@ -496,7 +496,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down Expand Up @@ -526,7 +526,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_next_send_date = ""
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand All @@ -553,7 +553,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
, schedule_sent = true
};

service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false ).$results( template );
service.$( "getTemplate" ).$args( id=templateId, allowDrafts=true, fromVersionTable=false, useRequestCache=false ).$results( template );
service.$( "saveTemplate", templateId );
service.$( "_getNow", nowish );

Expand Down

0 comments on commit 6f246d4

Please sign in to comment.