Skip to content

Commit

Permalink
Fixed date/time comparision since the json file is hard coded to 3 ye…
Browse files Browse the repository at this point in the history
…ars ago and the code is now 3 years old
  • Loading branch information
alanhartless committed May 15, 2020
1 parent f5455eb commit 8a365ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/MauticCrmBundle/Tests/Pipedrive/PipedriveTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function createCompany($name = 'Company Name', $address = 'Wrocław, P

protected function createLeadIntegrationEntity($integrationEntityId, $internalEntityId)
{
$date = (new DateTimeHelper('-3 years'))->getDateTime();
$date = (new DateTimeHelper('2017-05-15 00:00:00'))->getDateTime();

$integrationEntity = new IntegrationEntity();

Expand All @@ -200,7 +200,7 @@ protected function createLeadIntegrationEntity($integrationEntityId, $internalEn

protected function createCompanyIntegrationEntity($integrationEntityId, $internalEntityId)
{
$date = (new DateTimeHelper('-3 years'))->getDateTime();
$date = (new DateTimeHelper('2017-05-15 00:00:00'))->getDateTime();

$integrationEntity = new IntegrationEntity();

Expand Down

0 comments on commit 8a365ed

Please sign in to comment.